Encoding regexp when updating URL

This commit is contained in:
Jeff Avallone 2014-12-15 10:09:54 -05:00
parent 3374e760db
commit dab0dab9b1

View File

@ -26,7 +26,7 @@ export default class Regexper {
submitListener(event) { submitListener(event) {
event.preventDefault(); event.preventDefault();
location.hash = this.field.value; location.hash = encodeURIComponent(this.field.value);
} }
hashchangeListener() { hashchangeListener() {