Skip to content

Commit ec2567b

Browse files
author
Dimitri POSTOLOV
authored
filename-case: Remove unnecessary escape from docs (#2004)
1 parent 84a5816 commit ec2567b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rules/filename-case.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ For example:
8989
- Ignore some files when you use [eslint-plugin-markdown](https://github.com/eslint/eslint-plugin-markdown), for example `README.md`.
9090
- Some tools may require special names for some files.
9191

92-
Don't forget that you must escape special characters that you don't want to be interpreted as part of the regex, for example, if you have `[` in the actual filename. For example, to match `[id].js`, use `/^\[id\]\.js$/` or `'^\\[id\\]\\.js$'`.
92+
Don't forget that you must escape special characters that you don't want to be interpreted as part of the regex, for example, if you have `[` in the actual filename. For example, to match `[id].js`, use `/^\[id]\.js$/` or `'^\\[id]\\.js$'`.
9393

9494
```js
9595
"unicorn/filename-case": [

0 commit comments

Comments
 (0)