ceylon-sdk icon indicating copy to clipboard operation
ceylon-sdk copied to clipboard

String indexing in RegexJava.split() looks suspicious

Open jvasileff opened this issue 9 years ago • 2 comments

split(String input, Integer limit, ...) uses resultLength = input.size which is in Characters, compares to limit which is also in Characters, and then passes limit to Java's Pattern, which I'm guessing expects char code units.

jvasileff avatar Mar 31 '16 15:03 jvasileff

@jvasileff didn't you do something to fix this? Or was that a similar issue? Or was I just imagining things?

quintesse avatar Apr 05 '16 00:04 quintesse

@quintesse that was https://github.com/ceylon/ceylon-sdk/issues/528. I didn't take a close look at this one.

jvasileff avatar Apr 05 '16 13:04 jvasileff