1
0
Fork 0
mirror of synced 2024-07-02 04:50:44 +12:00

app screen routing - routes are no case insensitive

This commit is contained in:
Michael Shanks 2020-10-14 20:54:07 +01:00
parent 38e052c429
commit 3914d63dee

View file

@ -28,7 +28,9 @@ export const screenRouter = ({ screens, onScreenSelected, window }) => {
function route(url) {
const _url = makeRootedPath(url.state || url)
current = routes.findIndex(
p => p !== "*" && new RegExp("^" + p + "$").test(_url)
p =>
p !== "*" &&
new RegExp("^" + p.toLowerCase() + "$").test(_url.toLowerCase())
)
const params = {}