weeeeeeird I tried it today and it didn't work locally or in the REPL. Will try again tomorrow
-
-
Replying to @_jayphelps
Note that as
@FakeUnicode said, `\u{…}` only works in regexp literals when the `u` flag set. https://mathiasbynens.be/notes/es6-unicode-regex#impact-syntax …2 replies 0 retweets 1 like -
Replying to @mathias @FakeUnicode
oh sorry that's what I was primarily referring to--string literal usage
1 reply 0 retweets 0 likes -
Replying to @_jayphelps
There it should work without any flags/opt-in. Same with template literals. And it seems to… Hmm. +
@FakeUnicode1 reply 0 retweets 0 likes -
Replying to @mathias @FakeUnicode
string literals, not inside regex, is what I'm looking for.pic.twitter.com/idQqrmQg6E
1 reply 0 retweets 0 likes -
Replying to @_jayphelps
Yeah, Babel supports that just fine. +
@FakeUnicode1 reply 0 retweets 0 likes -
Replying to @mathias @FakeUnicode
doesn't look like it, I'm I totally spacing?pic.twitter.com/gtEVxeOY4B
1 reply 0 retweets 0 likes -
Replying to @_jayphelps @FakeUnicode
Ah, now I get it! You’re not seeing those characters because of a rendering issue.pic.twitter.com/7SoBYwdlf0
1 reply 0 retweets 1 like -
Replying to @mathias
oh I was hoping it would convert to escape sequences like regex does.
1 reply 0 retweets 0 likes -
I agree that would be better! Filed https://github.com/babel/babel/issues/4477 …. Note that jsesc can do this, kind of:https://github.com/mathiasbynens/jsesc …
-
-
Replying to @mathias
might be good idea to add a screenshot of the output to the ticket so people on mobile aren't confusedpic.twitter.com/mwgwL4DuFC
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
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.