Commit 4280f48
committed
Fix dynamic parameter regex replacement in
The replace failed to inject the route parameter as the layer regex was
changed from `/^\/(?:([^\/]+?))\/?(?=\/|$)/i` to `/^(?:\/([^/]+?))\/?(?=\/|$)/i`.
Now both regex cases are taken into consideration. The regex was changed
to use optional non-capturing groups for the differences between the two
possible regex patterns.
Link to playground using the new regex format: https://regex101.com/r/cursDu/1processComplexMatch
1 parent e3b4d2f commit 4280f48
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
0 commit comments