Skip to content

Implement TextInputFilter so we can remove regex and once_cell dependencies.#24

Open
elijahimmer wants to merge 1 commit into
ickshonpe:masterfrom
elijahimmer:master
Open

Implement TextInputFilter so we can remove regex and once_cell dependencies.#24
elijahimmer wants to merge 1 commit into
ickshonpe:masterfrom
elijahimmer:master

Conversation

@elijahimmer

Copy link
Copy Markdown

We don't need regex to match a simple pattern, just implement it.

I removed the regex and once_cell dependencies by implementing the text filter.

This will technically break public API as TextInputFilter::regex is removed, yet I don't think anyone would be using it.
If that is a problem, we could add a feature to re-enable it, but I think that would be unnecessary.

I also added tests for the filters.

Just tell me if you want me to change anything and I can go ahead and do it.

@elijahimmer elijahimmer changed the title Remove regex and once_cell and implement the text filter Implement TextInputFilter so we can remove regex and once_cell dependcies. Jul 21, 2025
@elijahimmer elijahimmer changed the title Implement TextInputFilter so we can remove regex and once_cell dependcies. Implement TextInputFilter so we can remove regex and once_cell dependencies. Jul 21, 2025
@eclipse-909

Copy link
Copy Markdown

Hello. I've just made PR #25 which conflicts with this one. Please review it before deciding whether to merge this one.

@elijahimmer

Copy link
Copy Markdown
Author

For those in review:
Please look at #25 and/or #26 as those are solutions that remove this issue entirely.

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.

2 participants