fix replace regexp
This commit is contained in:
parent
272b0117b6
commit
3501158ad0
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue