Skip to content

fix: support regex in global filters - #1199

Open
Iams4kura wants to merge 1 commit into
sansan0:masterfrom
Iams4kura:codex/fix-global-filter-regex-20260805T080149Z
Open

fix: support regex in global filters#1199
Iams4kura wants to merge 1 commit into
sansan0:masterfrom
Iams4kura:codex/fix-global-filter-regex-20260805T080149Z

Conversation

@Iams4kura

Copy link
Copy Markdown

Summary

  • Fixes: A title containing spam still passes a documented /spam|clickbait/ global filter.
  • Root cause: Global filters are stored as raw strings and matched by substring, so slash-delimited regular expressions are treated literally.

Regression evidence

  • Before: PYTHONDONTWRITEBYTECODE=1 uv run --frozen python -m unittest discover -s tests -p 'test_frequency.py' -v exited 1

  • After: PYTHONDONTWRITEBYTECODE=1 uv run --frozen python -m unittest discover -s tests -p 'test_frequency.py' -v exited 0

Verification

  • PYTHONDONTWRITEBYTECODE=1 uv run --frozen python -m unittest discover -s tests -v
  • uvx ruff check tests/test_frequency.py
  • uv build --no-sources

Scope

  • 2 files changed, +49 / -5 lines

Authorship

This fix was developed with AI assistance and was validated with the regression and project checks listed above.

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