ceylon-sdk
ceylon-sdk copied to clipboard
String indexing in RegexJava.split() looks suspicious
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 didn't you do something to fix this? Or was that a similar issue? Or was I just imagining things?
@quintesse that was https://github.com/ceylon/ceylon-sdk/issues/528. I didn't take a close look at this one.