You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The split(_: Char) is (in this case) provided by StringOps, which implements the method using the \Q and \E escapes of Java Regexes. We have the option of:
Rewrite StringOps for Scala.js
Support \Q and \E
The latter is probably simpler in the long run, but unsure about this.
Supporting \Q and \E basically means implementing a lexer that would tokenize the string and untokenize it afterwards. I don't like it. But I don't like rewriting StringOps either (actually StringLike) :-s
I would opt for a very nasty hack, documented as being there for the sole purpose of supporting StringLike.split: in regex implem, just support \Qc\E with c being one character.
The following line should dispatch
split
onWrappedString
(after PIMPing).However, the line yields
List("a?b")
rather thanList("a", "b")
The text was updated successfully, but these errors were encountered: