From 0810b4e6f947c81a07b29e0b4e4be200e324d80a Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Mon, 23 Nov 2026 11:44:56 -0700 Subject: [PATCH] Public-tree test: an image density suffix such as hero@2x.png is not an email address Co-Authored-By: Claude Fable 5.2 --- tests/test_public.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_public.py b/tests/test_public.py index 012ab26..9d7e720 100644 --- a/tests/test_public.py +++ b/tests/test_public.py @@ -86,6 +86,8 @@ class PublishableTree(unittest.TestCase): if "noreply" in addr.lower() or domain.lower() in ("example.com", "example.org", "example.net", "b.co"): continue # decorators and npm scopes such as @scope/pkg.js are not addresses: they have no local part + if re.fullmatch(r"\d+x\.(png|jpe?g|gif|webp|avif)", domain.lower()): + continue # an image density suffix such as hero@2x.png is a file name, not an address bad.append("%s: %s" % (rel, addr)) self.assertEqual(bad, [], "email addresses in files that would be published")