Now that https://github.com/tc39/ecma262/commit/d978ed19a3173fb6b2d38d11c990e6cad9570b33 … is merged, JavaScript regular expressions officially have a dotAll mode that can be enabled through the `s` flag.
/./su matches any Unicode code point, including line terminator symbols.
https://mathiasbynens.be/notes/es-regexp-proposals#dotAll …
-
Show this thread
-
@babeljs Now that this reached stage 4, want to adopt https://github.com/mathiasbynens/babel-plugin-transform-dotall-regex …?
1 reply 1 retweet 2 likesShow this thread -
This Tweet is unavailable.
-
Yeah, if there’s interest. We did the same thing for https://github.com/mathiasbynens/babel-plugin-transform-unicode-property-regex … recently (at the Babel team’s request) +
@left_pad1 reply 0 retweets 0 likes -
This Tweet is unavailable.
-
Replying to @jamiebuilds @thejameskyle and
Oh good, I’ll work on a PR today then! Would appreciate your review
1 reply 0 retweets 0 likes -
This Tweet is unavailable.
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.