Skip to content

fix(description): spell invisible-character ranges as regex escapes - #558

Merged
jamesconwaydev merged 1 commit into
mainfrom
fix/codeql-ignorable-range
Nov 15, 2026
Merged

jamesconwaydev merged 1 commit into
mainfrom
fix/codeql-ignorable-range

Conversation

@jamesconwaydev

Copy link
Copy Markdown
Collaborator

CodeQL read the astral characters in the non-raw IGNORABLE pattern as U+FFFD and raised two py/overly-large-range alerts on scripts/devstream/description.py:26. A raw string passes the escapes to re instead. The match set is unchanged: compared old and new patterns over every code point from U+0000 to U+10FFFF, zero differences. Tests: 623 pass.

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.
@jamesconwaydev
jamesconwaydev merged commit 2804e61 into main Nov 15, 2026
10 checks passed
@jamesconwaydev
jamesconwaydev deleted the fix/codeql-ignorable-range branch November 15, 2026 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant