Fix regular expression for optional params
The router converts patterns with optional parameters to regular expressions that are not strict enough.
Example: `/profile/:id?/:tab?` matches `/profile-random-bug`, `/profile//` and `/profile///` paths.
This PR fixes it.
11 bytes added.
合并状态:未合并 关闭于 2024-04-09 2 条评论