Description
STEPS TO REPRODUCE:
StringUtils.replaceIgnoreCase("\u0130x", "x", "")
EXPECTED: "\u0130" is returned.
ACTUAL: StringIndexOutOfBoundsException
This happens because the replace method is assuming that text.length() == text.toLowerCase().length(), which is not true for certain characters.
Attachments
Issue Links
- relates to
-
LANG-1453 StringUtils.removeIgnoreCase("İa", "a") throws IndexOutOfBoundsException
- Resolved
- links to
(1 links to)