Closed ggrossetie closed 3 years ago
Currently, the regular expression use only space, dot followed by a space, dot at the end of the line and end of line:
https://github.com/sapegin/textlint-rule-stop-words/blob/3d1d56bcb8bd5d157ca2269fe8a63b6cb944a0a4/index.js#L124
In other words, it won't match in the following cases:
add up? add up! add up, and subtract. add up; and subtract. add up: 10
Using word boundary (\b) is probably a bad idea but adding common punctuation marks seems reasonable. What do you think?
\b
Yeah, this sounds like a good idea! Mind sending a pull request? 👾
:tada: This issue has been resolved in version 2.0.8 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Currently, the regular expression use only space, dot followed by a space, dot at the end of the line and end of line:
https://github.com/sapegin/textlint-rule-stop-words/blob/3d1d56bcb8bd5d157ca2269fe8a63b6cb944a0a4/index.js#L124
In other words, it won't match in the following cases:
Using word boundary (
\b
) is probably a bad idea but adding common punctuation marks seems reasonable. What do you think?