-
I'm trying to use the My test file is very basic ("This is text text.") but no errors are reported. Same happens when the repeated word is mid-sentence. Any suggestions? Thanks vale version 2.15.5 |
Beta Was this translation helpful? Give feedback.
Answered by
jdkato
May 11, 2022
Replies: 1 comment 1 reply
-
The problem is the punctuation at the end of "text."; in other words, "text" != "text." You can ignore this kind of difference by adjusting the pattern, for example: extends: repetition
message: "'%s' is repeated!"
level: error
alpha: true
tokens:
- '[^\s.!?,]+' |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jdkato
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The problem is the punctuation at the end of "text."; in other words, "text" != "text." You can ignore this kind of difference by adjusting the pattern, for example: