From 7d8ea8b3666391166533ce1da8dc4ff7d76935c0 Mon Sep 17 00:00:00 2001 From: Loi Chyan Date: Tue, 30 Dec 2025 11:19:14 +0800 Subject: [PATCH] docs: update links of path-to-regexp to 6.x --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c0bb6820..70b0ff41 100644 --- a/README.md +++ b/README.md @@ -795,11 +795,11 @@ await app.listen({ port: 8000 }); ``` A route passed is converted to a regular expression using -[path-to-regexp](https://github.com/pillarjs/path-to-regexp), which means -parameters expressed in the pattern will be converted. `path-to-regexp` has -advanced usage which can create complex patterns which can be used for matching. -Check out the -[documentation for that library](https://github.com/pillarjs/path-to-regexp#parameters) +[path-to-regexp](https://github.com/pillarjs/path-to-regexp/tree/6.x), which +means parameters expressed in the pattern will be converted. `path-to-regexp` +has advanced usage which can create complex patterns which can be used for +matching. Check out the +[documentation for that library](https://github.com/pillarjs/path-to-regexp/tree/6.x#parameters) if you have advanced use cases. In most cases, the type of `context.params` is automatically inferred from the