From 9f9ccf3cee66ca2fe5df8c706662cba3bdab7a5f Mon Sep 17 00:00:00 2001 From: Kyle McCarthy Date: Fri, 12 Oct 2018 13:49:21 -0500 Subject: [PATCH] Replace negative lookbehind with a more supported regular expression (#837) * provide fix for bug related to parsing GET parameters * expand to test for a path that has already escaped the query string * remove negative lookbehind and replaced with alternative regexp due to firefox incompatibility * follow code style --- js/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/core.js b/js/core.js index 4b7b5dc..75c320a 100644 --- a/js/core.js +++ b/js/core.js @@ -235,7 +235,7 @@ proto.updateGetPathTemplate = function( optPath ) { // convert path option into regex to look for pattern in location // escape query (?) in url, allows for parsing GET parameters var regexString = optPath - .replace( /(?