From 50cc64f408601465ad0eb566a30c21abcc2cf803 Mon Sep 17 00:00:00 2001 From: jamesconwaydev <148910373+jamesconwaydev@users.noreply.github.com> Date: Fri, 6 Nov 2026 11:16:16 -0700 Subject: [PATCH] test(fuzz): allow the emoji joiner the description filter keeps on purpose --- fuzz/fuzz_description.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fuzz/fuzz_description.py b/fuzz/fuzz_description.py index 74cdfe5..c6f5bc0 100644 --- a/fuzz/fuzz_description.py +++ b/fuzz/fuzz_description.py @@ -14,7 +14,7 @@ with atheris.instrument_imports(include=["scripts"]): from scripts.devstream import license_detect - from scripts.devstream.description import FORBIDDEN, IGNORABLE, MAX_LEN, MIN_LEN, VARIATION, clean_description + from scripts.devstream.description import EMOJI_ZWJ, FORBIDDEN, IGNORABLE, MAX_LEN, MIN_LEN, VARIATION, clean_description # Invisible characters people use to slip a blocked word past the filter. @@ -39,7 +39,8 @@ def TestOneInput(data: bytes) -> None: if final is not None: assert MIN_LEN <= len(final) <= MAX_LEN, final assert not FORBIDDEN & set(final), final - assert not IGNORABLE.search(final) and not VARIATION.search(final), final + # The one invisible character kept is a joiner between two emoji, which builds a single emoji. + assert not IGNORABLE.search(EMOJI_ZWJ.sub("", final)) and not VARIATION.search(final), final assert clean_description(final) == (final, None), final license_detect._spdx_scan("SPDX-License-Identifier: " + text) license_detect._readme_license("## License\n\n" + text)