Encoding regexp when updating URL
This commit is contained in:
parent
3374e760db
commit
dab0dab9b1
@ -26,7 +26,7 @@ export default class Regexper {
|
||||
submitListener(event) {
|
||||
event.preventDefault();
|
||||
|
||||
location.hash = this.field.value;
|
||||
location.hash = encodeURIComponent(this.field.value);
|
||||
}
|
||||
|
||||
hashchangeListener() {
|
||||
|
Loading…
Reference in New Issue
Block a user