Skip to content

Commit 124f5a6

Browse files
committed
5.2.1: fixes typo in the example of "backslash hash", related to #83
1 parent 7032248 commit 124f5a6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Notice that a line starting with `'#'`(hash) is treated as a comment. Put a back
136136

137137
```js
138138
ignore().add('#abc').ignores('#abc') // false
139-
ignore().add('\#abc').ignores('#abc') // true
139+
ignore().add('\\#abc').ignores('#abc') // true
140140
```
141141

142142
`pattern` could either be a line of ignore pattern or a string of multiple ignore patterns, which means we could just `ignore().add()` the content of a ignore file:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ignore",
3-
"version": "5.2.0",
3+
"version": "5.2.1",
44
"description": "Ignore is a manager and filter for .gitignore rules, the one used by eslint, gitbook and many others.",
55
"files": [
66
"legacy.js",

0 commit comments

Comments
 (0)