Repository navigation
Commit 42cecb9
Jacek
fix(shared): suggest :path* subtree form in createRouteMatcher path types
WithPathPatternWildcard now suggests `/dashboard/:path*` instead of `/dashboard(.*)`.
The `:path*` form matches on path-segment boundaries, so it covers `/dashboard` and its
subtree without also matching sibling routes like `/dashboardxyz`. Root is special-cased
to `/:path*` to avoid a malformed `//:path*`. Backward compatible: the param is
Autocomplete-wrapped, so existing `(.*)` patterns still type-check, and there is no runtime change.1 parent 668b1c8 commit 42cecb9
2 files changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
0 commit comments