fix replace regexp
This commit is contained in:
1 parent
272b0117b6
commit
3501158ad0
1 file changed
+1
-1
+1
-1
@@ -12,7 +12,7 @@ $(function() {
|
||||
property = new_property;
|
||||
|
||||
if (history.pushState) {
|
||||
var newurl = window.location.href.replace(/property=./,'property='+new_property);
|
||||
var newurl = window.location.href.replace(/property=[a-z]+/,'property='+new_property);
|
||||
window.history.pushState({path:newurl},'',newurl);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user