Skip to content

Commit

Permalink
Don't skip non-alphanumeric in Illusions
Browse files Browse the repository at this point in the history
Closes #4.
  • Loading branch information
jdkato committed Dec 13, 2019
1 parent 1dc3300 commit ed93884
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
1 change: 1 addition & 0 deletions features/rules.feature
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Feature: Rules
Then the output should contain exactly:
"""
test.md:1:1:write-good.Illusions:'the' is repeated!
test.rst:1:1:write-good.Illusions:'foo' is repeated!
"""

Scenario: Passive voice
Expand Down
2 changes: 1 addition & 1 deletion fixtures/Illusions/.vale.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ StylesPath = ../../

MinAlertLevel = suggestion

[*.md]
[*.{md,rst}]
write-good.Illusions = YES
6 changes: 5 additions & 1 deletion fixtures/Illusions/test.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
The the book store is over there.
the the book store is over there.

// //

the `the` the
9 changes: 9 additions & 0 deletions fixtures/Illusions/test.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
foo foo

foo bar

foo ``bar`` foo bar

foo ``bar`` foo ``bar``

foo ``bar`` foo ``bar`` cows
4 changes: 2 additions & 2 deletions write-good/Illusions.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
extends: repetition
message: "'%s' is repeated!"
level: warning
ignorecase: true
alpha: true
action:
name: edit
params:
- truncate
- " "
tokens:
- '[\w]+'
- '[^\s]+'

0 comments on commit ed93884

Please sign in to comment.