fix replace regexp
This commit is contained in:
+1
-1
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user