vale: fix TLA detection for Acronyms rule

The Acronyms rule was not consistently detecting TLAs

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson 2024-09-27 14:29:13 +02:00
parent 183b0dcdd0
commit 3cbec0b9f5
1 changed files with 2 additions and 2 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-Za-z]+(?: |\n))+\(([A-Z]{3,5})\)'
first: '\b([A-Z]{3,5})\b'
second: '(?:\b[A-Z][a-z]+ )+\(([A-Z]{3,5})\)'
# ... with the exception of these:
exceptions:
- API