Skip to content

Conversation

@cketti
Copy link
Contributor

@cketti cketti commented Apr 24, 2025

Replace calls to java.lang.Character.isLetter() and isDigit(). In all these cases we really only want to allow ASCII letters or digits.

@jhy
Copy link
Owner

jhy commented Apr 25, 2025

Cool beans. Could you add a couple positive / negative tests for these, in StringUtils? So that nobody gets a rush of blood to their head and tries to tidy it up back to Character.isLetter.

@cketti cketti force-pushed the ascii-only-matching branch from d776a7b to 1d4772d Compare April 25, 2025 00:47
@cketti
Copy link
Contributor Author

cketti commented Apr 25, 2025

Done.

@jhy jhy added this to the 1.20.1 milestone Apr 25, 2025
@jhy jhy merged commit dcb4f79 into jhy:master Apr 25, 2025
12 checks passed
@cketti cketti deleted the ascii-only-matching branch April 25, 2025 01:23
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