vale: properly allow pluralized acronyms

Something changed in a recent vale release where the old regex syntax
for enforcing case-sensitivity does not work anymore. This change
ensures that the allow-rule for ignoring pluralized acronyms only flag
terms that begin with two or more *uppercase* letters, followed by an s.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson 2025-01-06 07:26:01 +01:00
parent 51c5636494
commit 6c99895fd1
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
(?-i)[A-Z]{2,}'?s
(?i)[A-Z]{2,}'?s
Amazon
Anchore
Apple