Skip to content

fix(text): Filter repeated chars with spaces/punctuation#202

Open
mlissner wants to merge 2 commits intofilter-email-banner-boilerplate-20260328from
filter-repeated-chars-with-spaces-20260328
Open

fix(text): Filter repeated chars with spaces/punctuation#202
mlissner wants to merge 2 commits intofilter-email-banner-boilerplate-20260328from
filter-repeated-chars-with-spaces-20260328

Conversation

@mlissner
Copy link
Copy Markdown
Member

Summary

  • Extend is_repeated_chars to strip whitespace and punctuation before checking for a single unique character
  • Catches patterns like XXXXX XXXX and XXXXXXXXX] which are redaction placeholders, not real content

Test plan

🤖 Generated with Claude Code

mlissner and others added 2 commits March 28, 2026 09:00
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Extend is_repeated_chars to strip whitespace and punctuation before
checking. Catches patterns like "XXXXX XXXX" and "XXXXXXXXX]" which
are redaction placeholders, not real content.

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 16:00
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