From 3cbec0b9f5d41bcc4b8463d1cf911ffe98753e90 Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Fri, 27 Sep 2024 14:29:13 +0200 Subject: [PATCH] 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> --- _vale/Docker/Acronyms.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_vale/Docker/Acronyms.yml b/_vale/Docker/Acronyms.yml index 337fe998a1..e9b451a3c3 100644 --- a/_vale/Docker/Acronyms.yml +++ b/_vale/Docker/Acronyms.yml @@ -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