Skip to content

Commit ad2b13b

Browse files
committed
update
1 parent 28ba8e8 commit ad2b13b

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ router_set(router, 'GET', '{/:id(\\d+)}', ...);
3030
```
3131

3232
Named groups only capture the last matched value in group delimiters with `+` and `*` modifier.
33+
```ts
34+
router_set(router, 'GET', '/post{/:id}+', ...); // '/post/a/b' -> { id: 'b' }
35+
```
3336

3437
### JIT
3538
To wrap compiled code pieces with routing code:

bun.lock

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"oxc-transform": "^0.137.0",
2424
"oxfmt": "^0.56.0",
2525
"picocolors": "^1.1.1",
26-
"typescript": "^6.0.3"
26+
"typescript": "^6.0.3",
27+
"urlpattern-polyfill": "^10.1.0"
2728
},
2829
"trustedDependencies": [
2930
"@swc/core"

0 commit comments

Comments
 (0)