Fix optional routing regex.

This commit is contained in:
Dillon Kearns 2021-04-28 08:28:31 -07:00
parent 80ffd029eb
commit da62ada1b9

View File

@ -684,7 +684,7 @@ function routeRegex(name) {
return [`(?:([^/]+))`];
}
case "optional": {
return [`(([^/]+))?`];
return [`([^/]+)?`];
}
}
})