Skip to content

More flexible regex matching system #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 24, 2025
Merged

Conversation

blopker
Copy link
Owner

@blopker blopker commented May 24, 2025

The regex matching was happening after words were split and cleaned. This made it so matching text like hex codes (#fff000) impossible since the # was getting stripped. This change runs regex on each line before splitting words to identify areas to skip.

This is a breaking change since user defined regex may need to be adjusted to keep working, but will allow for more stuff to be matched. See the new README section for more details.

Included in this change are a bunch of regexes to ignore by default.

@blopker blopker merged commit b1c7cbd into main May 24, 2025
8 checks passed
This was referenced May 24, 2025
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