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

Regex case sensitivity workaround in accept.txt doesn't work as expected #901

Open
1 task done
jrahal-mx opened this issue Sep 24, 2024 · 0 comments
Open
1 task done

Comments

@jrahal-mx
Copy link

Check for existing issues

  • Completed

Environment

OS: macOS 13.4.1
Install Method: Homebrew
Vale Version: 3.7.1

Describe the bug / provide steps to reproduce it

In accept.txt, if I add [Oo]bservability per the example in the docs, Vale will accept observability and Observability.

I'd expect oBservability to trigger an alert because it doesn't match the pattern of:

  • Case sensitively matching a single character in the list [Oo]
  • Case sensitively matching bservability

Instead, it seems that Vale ignores casing on the rest of the string outside of Oo.

Do I need to build the regex differently to get it to match only lower-case bservability?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant