Well, parseLocation (findComponentByPath uses) transforms any upper case letters to lower case letters, that's why you need the i switch downstream
You could also modify parseLocation
I also noticed \\ as well as gm are unnecessary in the RegExp.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Well,
parseLocation
(findComponentByPath
uses) transforms any upper case letters to lower case letters, that's why you need thei
switch downstreamYou could also modify
parseLocation
I also noticed
\\
as well asgm
are unnecessary in the RegExp.