vale: also check for two-letter acronyms

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson 2024-11-08 17:27:59 +01:00
parent c646f079ea
commit 8e2705bedf
2 changed files with 3 additions and 3 deletions

View File

@ -4,8 +4,8 @@ link: https://docs.docker.com/contribute/style/grammar/#acronyms-and-initialisms
level: warning
ignorecase: false
# Ensures that the existence of 'first' implies the existence of 'second'.
first: '\b([A-Z]{3,5})\b'
second: '(?:\b[A-Z][a-z]+ )+\(([A-Z]{3,5})\)'
first: '\b([A-Z]{2,5})\b'
second: '(?:\b[A-Z][a-z]+ )+\(([A-Z]{2,5})\)'
# ... with the exception of these:
exceptions:
- AGPL

View File

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