Intent to ship: RegExp `dotAll` mode / `s` flag

55 views
Skip to first unread message

Mathias Bynens

unread,
Jul 27, 2017, 6:29:11 AM7/27/17
to blink-dev, v8-u...@googlegroups.com

Contact emails

jgr...@chromium.org, mat...@chromium.org


Spec

https://github.com/tc39/proposal-regexp-dotall-flag (stage 3 proposal)


Summary

The new s flag for ECMAScript regular expressions makes . match any character, including line terminators.


Link to “Intent to Implement” blink-dev discussion

There was none.


Is this feature supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

Yes.


Demo link

None. The explainer in the proposal offers some examples.


Interoperability and Compatibility Risk

The meaning of existing regular expression patterns isn’t affected by this proposal since the new s flag is required to opt-in to the new behavior.


Edge/Chakra: public support; tracking issue: https://github.com/Microsoft/ChakraCore/issues/2787

Firefox/SpiderMonkey: no signals; tracking issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1361856

Safari/JavaScriptCore: no signals; tracking issue: https://bugs.webkit.org/show_bug.cgi?id=172634

Web developers: positive signals


Is this feature fully tested?

Yes. In addition to V8’s own tests, Test262 includes tests for this feature.


OWP launch tracking bug

https://bugs.chromium.org/p/v8/issues/detail?id=6172


Entry on the feature dashboard

https://www.chromestatus.com/features/5644209772036096


Adam Klein

unread,
Jul 27, 2017, 2:49:34 PM7/27/17
to Mathias Bynens, blink-dev, v8-users
This LGTM to ship. Note that since this is a V8/JS feature, it's just an FYI to blink-dev; it doesn't need signoff from Blink API owners.

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAJYpFjBQv7rBjt7P5wtwNLRdB97oo-%2B1fHM8NjzVd5AaZMg-aA%40mail.gmail.com.

Mathias Bynens

unread,
Aug 11, 2017, 2:04:20 PM8/11/17
to Adam Klein, Mathias Bynens, blink-dev, v8-users
For future reference: this landed in V8 v6.2.66 and should thus be available in Chrome 62.

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAEvLGcKYJJRtT2BM%3Dj4%3DdtWL7LufRgqFR%2B5kcgThD2X0Dfpf7Q%40mail.gmail.com.

วีสัน ทำมะ

unread,
Aug 11, 2017, 2:32:07 PM8/11/17
to Mathias Bynens, v8-users, Adam Klein, Mathias Bynens, blink-dev
Wiamene

เมื่อ 12 ส.ค. 2017 1:04 AM "'Mathias Bynens' via blink-dev" <blin...@chromium.org> เขียนว่า
Reply all
Reply to author
Forward
0 new messages