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.
I decided
Case-insensitive search

P.S. Thanks for the router, what I needed
Well,
parseLocation(findComponentByPathuses) transforms any upper case letters to lower case letters, that's why you need theiswitch downstreamYou could also modify
parseLocationI also noticed
\\as well asgmare unnecessary in the RegExp.