The "prohibit" regex for sc_fsf_postal matches itself, causing the check
to report a false hit on maint.mk.  Suggested fix attached, using a
common trick for making a regex not match itself.

zw
From ea18ff9fb41b446d004ef6bbbd6ecca31b0aeeaf Mon Sep 17 00:00:00 2001
From: Zack Weinberg <[email protected]>
Date: Tue, 3 Feb 2026 11:18:48 -0500
Subject: [PATCH] syntax-check: avoid fsf_postal false positive on maint.mk
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

* maint.mk (sc_fsf_postal): Adjust ‘prohibit’ regex to not match itself.
---
 maint.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/maint.mk b/maint.mk
index ad60c8fb..29318a76 100644
--- a/maint.mk
+++ b/maint.mk
@@ -1065,7 +1065,7 @@ sc_GFDL_version:
 # Look out for FSF postal addresses -- use URLs instead:
 # https://www.gnu.org/prep/maintain/html_node/License-Notices-for-Code.html
 sc_fsf_postal:
-	@prohibit='(Mass Ave|Massachusetts Ave|Temple Pl|Franklin St|Milk St)' \
+	@prohibit='([M]ass Ave|[M]assachusetts Ave|[T]emple Pl|[F]ranklin St|[M]ilk St)' \
 	halt='use license URLs instead of FSF postal address' \
 	 $(_sc_search_regexp)
 
-- 
2.52.0

Reply via email to