fix replace regexp

This commit is contained in:
jlehmann committed 2020-10-31 12:20:23 +01:00
1 parent 272b0117b6
commit 3501158ad0
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}
}