How to work with Unicode RegExp in Node.js: require('child_process').execSync('python3 ./process-string.py', { input: input })
-
-
Replying to @kamilogorek
rather like the default behavior of only alphanumeric, makes typical input validation easier
1 reply 0 retweets 0 likes -
Replying to @williamtdr
default yes, but only as long as there's a way to change it. There's no such option in Node now.
1 reply 0 retweets 0 likes -
Replying to @kamilogorek
looks like the u flag is still being added to v8: https://bugs.chromium.org/p/v8/issues/detail?id=5080 …
1 reply 0 retweets 0 likes -
Replying to @williamtdr @kamilogorek
in the meantime, use: https://github.com/mathiasbynens/regexpu …
2 replies 0 retweets 1 like -
Replying to @williamtdr
I'm aware of a support, I checked Mathias's table https://mathiasbynens.be/notes/es6-unicode-regex#support … Also polyfill's behavior differs from Python
@mathias1 reply 0 retweets 0 likes
Mathias Bynens Retweeted Mathias Bynens
You might be interested in https://twitter.com/mathias/status/758197376565833728 … :)
Mathias Bynens added,
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.
Unicode property escapes are coming to JavaScript regular expressions!