mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-25 04:43:03 +03:00
Fix optional routing regex.
This commit is contained in:
parent
80ffd029eb
commit
da62ada1b9
@ -684,7 +684,7 @@ function routeRegex(name) {
|
|||||||
return [`(?:([^/]+))`];
|
return [`(?:([^/]+))`];
|
||||||
}
|
}
|
||||||
case "optional": {
|
case "optional": {
|
||||||
return [`(([^/]+))?`];
|
return [`([^/]+)?`];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user