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

Case-insensitive matching doesn't work with digits #102

Closed
donnerpeter opened this issue Apr 2, 2024 · 3 comments
Closed

Case-insensitive matching doesn't work with digits #102

donnerpeter opened this issue Apr 2, 2024 · 3 comments
Assignees

Comments

@donnerpeter
Copy link

Regex.compile("\\d", Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE).matches("3") yields false :(

@donnerpeter
Copy link
Author

With letters as well: both of these yield false:
Regex.compile("[ab]", Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE).matches("a")
Regex.compile("foo|bar", Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE).matches("foo")

But this is true:
Regex.compile("foo", Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE).matches("foo")

@marianobarrios marianobarrios self-assigned this Apr 2, 2024
@marianobarrios
Copy link
Owner

I confirm the issue (it seems like it got introduced in a refactoring some time ago...).

@marianobarrios
Copy link
Owner

marianobarrios commented Apr 6, 2024

Should be fixed in latest release 0.9.0

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

No branches or pull requests

2 participants