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