Skip to content

Commit 02302a6

Browse files
committed
Add escape example to README
1 parent fab3c0e commit 02302a6

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,28 @@ GitHub launched in **2018-04-10**.
205205

206206
For more details, see [test/snapshots](./test/snapshots)
207207

208+
### Escape bracket
209+
210+
**text:**
211+
```markdown
212+
TODO [Issue #1]: it will be fixed
213+
```
214+
215+
**patterns:**
216+
```json
217+
[
218+
"/TODO \\[Issue #\\d+\\]:/i"
219+
]
220+
```
221+
222+
:memo: You should escape bracket both. `\\[` and `\\]`,
223+
224+
**results:**
225+
226+
**TODO [Issue #1]:** it will be fixed
227+
```
228+
229+
208230
## Changelog
209231
210232
See [Releases page](https://github.com/textlint/regexp-string-matcher/releases).

0 commit comments

Comments
 (0)