From 3501158ad08b8fb0cf98cb0a564690f80f49533c Mon Sep 17 00:00:00 2001 From: Joerg Lehmann Date: Sat, 31 Oct 2020 12:20:23 +0100 Subject: [PATCH] fix replace regexp --- static/js/graph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/graph.js b/static/js/graph.js index 32c9ff3..3be9191 100644 --- a/static/js/graph.js +++ b/static/js/graph.js @@ -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); } }