From fba1c59f8486875124b571f1de0c9b84de8ccfda Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Wed, 5 Oct 2022 11:05:04 +0200 Subject: [PATCH] Bugfix: `$` got removed from hash path --- vendors/routes/hasher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendors/routes/hasher.js b/vendors/routes/hasher.js index 46ecadcaf..c35956f65 100644 --- a/vendors/routes/hasher.js +++ b/vendors/routes/hasher.js @@ -14,7 +14,7 @@ const _hashValRegexp = /#(.*)$/, _hashRegexp = /^[#/]+/, - _hashTrim = /^\/|\$/g, + _hashTrim = /^\/+/g, _trimHash = hash => hash?.replace(_hashTrim, '') || '', _getWindowHash = () => { //parsed full URL instead of getting window.location.hash because Firefox decode hash value (and all the other browsers don't)