New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"abc".split("") get error result ["","a","b","c"] #143
Comments
As commented in the Javadoc [1], unfortunately Depend on your use case, one alternative API that would work consistently with JVM is the Guava's Splitter which doesn't use regex. (Being said that [1]
|
(Note: in offline discussion rluble@ pointed out that the JDK behavior is actually changed from Java 7 to Java 8 where J2CL is following the earlier behavior) |
Describe the bug
"abc".split("") get error array ["","a","b","c"]
To Reproduce
use j2clmavenplugin
get result in browser console
"abc".split("") The expected result is ["a","b","c"]
The text was updated successfully, but these errors were encountered: