alhudz opened a new pull request, #1687:
URL: https://github.com/apache/commons-lang/pull/1687

   indexOfAny(CharSequence, int, char...) reports a hit when the last char of 
the input is a lone high surrogate that equals the high half of a supplementary 
code point in searchChars: the surrogate guard short-circuits on `i >= csLast` 
and returns that index without ever matching the low half. So 
`indexOfAny("\uD840", new char[] {'\uD840', '\uDC01'})` returns 0 while 
`containsAny`/`containsNone` return false on the same input, even though the 
StringUtilsContainsTest cases pin that lone-half behavior. Reused the existing 
containsAny condition so the three methods agree.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to