Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Apr 17, 2024
1 parent 6f3616c commit 36749bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Routes is an object of route’s name to route pattern:
createRouter({
route1: '/',
route2: '/path/:var1/and/:var2',
route3: [/\/posts\/(draft|new)\/(\d+)/, (type, id) => ({ type, id })]
route3: /\/posts\/(?<type>draft|new)\/(?<id>\d+)/
})
```

Expand Down Expand Up @@ -136,7 +136,7 @@ createRouter({
})
```

Router will works with `?search` part as a string. Parameters order will
Router will work with `?search` part as a string. Parameters order will
be critical.


Expand Down

0 comments on commit 36749bf

Please sign in to comment.