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