Skip to content
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

RegexProperty to safely handle configurable regex patterns #145

Closed
ljacqu opened this issue Aug 4, 2020 · 0 comments
Closed

RegexProperty to safely handle configurable regex patterns #145

ljacqu opened this issue Aug 4, 2020 · 0 comments
Milestone

Comments

@ljacqu
Copy link
Member

ljacqu commented Aug 4, 2020

Introduce a Property of type Pattern that safely compiles the configured value to a Regex, falling back to the default value if it is invalid.

Could then add additional methods to it so that we can directly from the RegexProperty check whether some input matches it

@ljacqu ljacqu added this to the 1.3.0 Release milestone Apr 19, 2021
@ljacqu ljacqu closed this as completed in 7332a20 Apr 19, 2021
@ljacqu ljacqu changed the title PatternProperty to safely handle configurable regex RegexProperty to safely handle configurable regex patterns Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant