Skip to content

Commit 32586c9

Browse files
committed
fix: README.md inconsistency
1 parent 5d63f91 commit 32586c9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ parth.set('(get|post) /:page/:view', props)
2121
// =>
2222
{
2323
path: 'get /:page/:view',
24-
stem: ':0(get|post) /:page/:view:queryFragment(\\/?[?#][^/\\s]+)?',
24+
stem: ':0(get|post) /:page/:view:qs(?:\\/?)?([?#][^\\/\s]*)?',
2525
depth: 2,
26-
regex: /^(get|post) \/([^?#.\/\s]+)\/([^?#.\/\s]+)(\/?[?#][^\/\s]+)?/,
26+
regex: /^(get|post) \/([^?#.\/\s]+)\/([^?#.\/\s]+)(?:\/?)?([?#][^\/\s]*)?/,
2727
match: 'get /weekend/baby?query=string#hash',
2828
handle: [Function],
2929
notFound: ' user.10.beers now',
3030
params: {
3131
page: 'weekend',
3232
view: 'baby',
33-
queryFragment: '?query=string#hash'
33+
qs: '?query=string#hash'
3434
}
3535
}
3636
```

0 commit comments

Comments
 (0)