fix replace regexp

This commit is contained in:
Joerg Lehmann 2020-10-31 12:20:23 +01:00
parent 272b0117b6
commit 3501158ad0
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ $(function() {
property = new_property; property = new_property;
if (history.pushState) { 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); window.history.pushState({path:newurl},'',newurl);
} }
} }