I’ve found some annoyed thing. We have common kotl...
# multiplatform
a
I’ve found some annoyed thing. We have common kotlin code like
Regex(regexString).matches(valueString)
And someone has sent string with escaped
:
On JVM it works but on JS it leads the error
Invalid escape
: https://stackoverflow.com/questions/63006601/why-does-u-throw-an-invalid-escape-error I think that common code (for an any parameter) must works or doesn’t work in both platforms. It mustn’t be work on JVM and doesn’t work on JS. What should I do?