errata-ai / vale

:pencil: A markup-aware linter for prose built with speed and extensibility in mind.
https://vale.sh
MIT License
4.52k stars 155 forks source link

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

Open jrahal-mx opened 2 months ago

jrahal-mx commented 2 months ago

Check for existing issues

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:

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?