Skip to content

fix(text): Fix REDACTED label not being filtered#203

Open
mlissner wants to merge 2 commits into
filter-repeated-chars-with-spaces-20260328from
fix-redacted-label-regex-20260328
Open

fix(text): Fix REDACTED label not being filtered#203
mlissner wants to merge 2 commits into
filter-repeated-chars-with-spaces-20260328from
fix-redacted-label-regex-20260328

Conversation

@mlissner
Copy link
Copy Markdown
Member

Summary

  • Reorder is_ok_words regex alternation from longest to shortest
  • Previously re matched the first two characters of "REDACTED" before the full redacted pattern could match, leaving "DACTED" as apparent content

Test plan

🤖 Generated with Claude Code

mlissner and others added 2 commits March 28, 2026 11:41
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The regex alternation was ordered shortest-first, so "re" consumed
the first two characters of "REDACTED" before the full "redacted"
pattern could match, leaving "DACTED" as apparent content.

Reordered longest-first so longer patterns take priority.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mlissner mlissner marked this pull request as ready for review March 28, 2026 18:44
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