Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Illusions incorrectly flags lines #4

Closed
jessetan opened this issue Dec 13, 2019 · 1 comment
Closed

Illusions incorrectly flags lines #4

jessetan opened this issue Dec 13, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@jessetan
Copy link

Given the following rst:

foo foo

foo bar

foo ``bar`` foo bar

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

foo ``bar`` foo ``bar`` cows

The output is:

 1:1  warning  'foo' is repeated!  write-good.Illusions 
 5:1  warning  'foo' is repeated!  write-good.Illusions 
 7:1  warning  'foo' is repeated!  write-good.Illusions 
 9:1  warning  'foo' is repeated!  write-good.Illusions 

Expected output should only contain line 1. My guess is that vale removes the literal (the text between double backticks) before applying the regex.

Note that if you remove the empty lines, the output is different even though it should be the same.

@jdkato jdkato closed this as completed in ed93884 Dec 13, 2019
@jdkato jdkato added the bug Something isn't working label Dec 13, 2019
@jdkato
Copy link
Member

jdkato commented Dec 13, 2019

This has been fixed in v0.3.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants