Bugfix: $ got removed from hash path

This commit is contained in:
the-djmaze 2022-10-05 11:05:04 +02:00
parent 86550d1563
commit fba1c59f84

View file

@ -14,7 +14,7 @@
const const
_hashValRegexp = /#(.*)$/, _hashValRegexp = /#(.*)$/,
_hashRegexp = /^[#/]+/, _hashRegexp = /^[#/]+/,
_hashTrim = /^\/|\$/g, _hashTrim = /^\/+/g,
_trimHash = hash => hash?.replace(_hashTrim, '') || '', _trimHash = hash => hash?.replace(_hashTrim, '') || '',
_getWindowHash = () => { _getWindowHash = () => {
//parsed full URL instead of getting window.location.hash because Firefox decode hash value (and all the other browsers don't) //parsed full URL instead of getting window.location.hash because Firefox decode hash value (and all the other browsers don't)