Skip to content

use Locale.ROOT in StringGroovyMethods.containsIgnoreCase#2567

Open
netliomax25-code wants to merge 1 commit into
apache:masterfrom
netliomax25-code:containsignorecase-locale-root
Open

use Locale.ROOT in StringGroovyMethods.containsIgnoreCase#2567
netliomax25-code wants to merge 1 commit into
apache:masterfrom
netliomax25-code:containsignorecase-locale-root

Conversation

@netliomax25-code
Copy link
Copy Markdown

containsIgnoreCase lowercases both arguments with the JVM default locale, so
under tr_TR "ADMIN".containsIgnoreCase("admin") returns false — I folds
to dotless ı. Switch to Locale.ROOT, matching the sibling
startsWithIgnoreCase/endsWithIgnoreCase which already fold locale-independently via equalsIgnoreCase.

@testlens-app
Copy link
Copy Markdown

testlens-app Bot commented May 28, 2026

✅ All tests passed ✅

🏷️ Commit: db43ad3
▶️ Tests: 99894 executed
⚪️ Checks: 22/22 completed


Learn more about TestLens at testlens.app.

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