From 613178c90fa4bc20db6ca9e64f3ca916d635af0a Mon Sep 17 00:00:00 2001 From: jamesconwaydev <148910373+jamesconwaydev@users.noreply.github.com> Date: Sun, 15 Nov 2026 15:17:19 -0700 Subject: [PATCH] fix(description): spell invisible-character ranges as regex escapes CodeQL read the astral characters in the old non-raw pattern as U+FFFD and flagged two overlapping ranges (alerts 1 and 2). A raw string hands the escapes to re instead, which matches exactly the same code points, checked across all of U+0000-U+10FFFF. --- scripts/devstream/description.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/devstream/description.py b/scripts/devstream/description.py index 286638e..f2c3407 100644 --- a/scripts/devstream/description.py +++ b/scripts/devstream/description.py @@ -23,9 +23,9 @@ # regex, so this is the table. U+FE00-FE0F is left to VARIATION: the emoji-run # check needs to see them first. IGNORABLE = re.compile( - "[\u00ad\u034f\u061c\u115f\u1160\u17b4\u17b5\u180b-\u180f\u200b-\u200f\u202a-\u202e" - "\u2060-\u206f\u3164\ufeff\uffa0\ufff0-\ufff8\U0001bca0-\U0001bca3\U0001d173-\U0001d17a" - "\U000e0000-\U000e0fff]" + r"[\u00ad\u034f\u061c\u115f\u1160\u17b4\u17b5\u180b-\u180f\u200b-\u200f\u202a-\u202e" + r"\u2060-\u206f\u3164\ufeff\uffa0\ufff0-\ufff8\U0001bca0-\U0001bca3\U0001d173-\U0001d17a" + r"\U000e0000-\U000e0fff]" )