Trott / remark-lint-prohibited-strings

remark-lint plugin to prohibit specified strings in markdown files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

capture groups in `no` strings probably will cause bugs

Trott opened this issue · comments

Because index.js assumes that there are exactly three capture groups, using parentheses in the no string will probably mess that up. (I haven't tested it and am just making a note now while I'm thinking about it. If anyone confirms or finds otherwise, add a comment here!)

Using positive- or negative-lookaheads instead would solve this. I'm going to close this for now. It can be revisited if real users run into it.