Skip to content

After adding a case-insensitive entry in accept.txt Vale does not validate other case-sensitive entries #727

@sohailekline

Description

@sohailekline

Check for existing issues

  • Completed

Environment

OS: macOS
Install method: Homebrew
Vale Version: 2.29.6

Describe the bug / provide steps to reproduce it

I have added few entries in accept.txt (without ?i to make them case-sensitive/exact match), it works fine and Vale throws error if it's not exact match. However, when I am adding one more entry which is case-insensitive (like (?i)word), Vale stops throwing error on other exact-match entires.

Please have a look at following case:

accept.txt:

PLuG
(?i)GitHub

.vale.ini:

StylesPath = styles
MinAlertLevel = suggestion
Vocab = Base

[formats]
mdx = md

[*.md]
BasedOnStyles = Vale
Vale.Spelling = NO
Vale.Repetition = NO

README.md:

Plug
github
GitHub

The output of Vale is below. However, the expected output is it should give an error for Plug because it is not case-insensitive in accept.txt
image

Now, I have changed accept.txt as per below and it seems working fine:

PLuG
GitHub

The output of Vale is below.
image

##Observation

My observation is that if we define any case-insensitive entry all other entires become case-insensitive. This same issue is also found in reject.txt.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions