Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update route guide #1626

Open
wants to merge 7 commits into
base: gh-pages
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
improve route guide
bjohansebas committed Oct 16, 2024
commit a577b3368f5ed7bf4afa0d445f504a719fb60291
6 changes: 3 additions & 3 deletions en/guide/routing.md
Original file line number Diff line number Diff line change
@@ -72,13 +72,13 @@ Route paths, in combination with a request method, define the endpoints at which

{% include admonitions/caution.html content=caution-character %}

{% capture note-dollar-character %}In express 5, you don't need to escape the dollar character (`$`) with `\`.
{% capture note-dollar-character %}In express 4, regular expression characters such as `$` need to be escaped with a `\`.
{% endcapture %}

{% include admonitions/note.html content=note-dollar-character %}
{% include admonitions/caution.html content=note-dollar-character %}

{% capture note-path-to-regexp %}
Express uses [path-to-regexp](https://www.npmjs.com/package/path-to-regexp) for matching the route paths; see the path-to-regexp documentation for all the possibilities in defining route paths. [Express Route Tester](http://forbeslindesay.github.io/express-route-tester/) is a handy tool for testing basic Express routes, although it does not support pattern matching.
Express uses [path-to-regexp](https://www.npmjs.com/package/path-to-regexp) for matching the route paths; see the path-to-regexp documentation for all the possibilities in defining route paths.
{% endcapture %}

{% include admonitions/note.html content=note-path-to-regexp %}
Loading