Unverified Commit 7a516d46 authored by Yann Bolliger's avatar Yann Bolliger Committed by GitHub

Add dot to regex chars in rewrites.mdx (#61095)

The rewrites doc was missing the `.` character when specifying which
characters were used for regex matching.

<!-- Thanks for opening a PR! Your contribution is much appreciated.
To make sure your PR is handled as smoothly as possible we request that
you follow the checklist sections below.
Choose the right checklist for the change(s) that you're making:

## For Contributors

### Improving Documentation

- Run `pnpm prettier-fix` to fix formatting issues before opening the
PR.
- Read the Docs Contribution Guide to ensure your contribution follows
the docs guidelines:
https://nextjs.org/docs/community/contribution-guide
-->

---------
Co-authored-by: 's avatarSam Ko <sam@vercel.com>
parent 6391e1d8
...@@ -211,7 +211,7 @@ module.exports = { ...@@ -211,7 +211,7 @@ module.exports = {
} }
``` ```
The following characters `(`, `)`, `{`, `}`, `:`, `*`, `+`, `?` are used for regex path matching, so when used in the `source` as non-special values they must be escaped by adding `\\` before them: The following characters `(`, `)`, `{`, `}`, `[`, `]`, `|`, `\`, `^`, `.`, `:`, `*`, `+`, `-`, `?`, `$` are used for regex path matching, so when used in the `source` as non-special values they must be escaped by adding `\\` before them:
```js filename="next.config.js" ```js filename="next.config.js"
module.exports = { module.exports = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment