Closed ihji closed 8 years ago
repX
can solve this problem. I found it while I read the source code. Thanks!
Yeah, would be nice to document it =D This is more to do with .rep
than with CharIn
, since anything with .rep
will exhibit this behavior.
FWIW, CharIn("def").rep
could also be rewritten as CharsWhile("def".contains(_))
, which is equivalent but a lot faster and doesn't suffer the effects of .rep
I found that overriding
WhitespaceApi
also affectsCharIn
's behavior. Is this a bug?