Files
test-repo/changelog_unreleased/javascript/12241.md
T
Sosuke Suzuki 5fbb8cacc4 Add changelog for unicode set notation proposal (#12277)
* Add changelog for unicode set notation

* Fix typo
2022-02-12 17:56:35 +09:00

809 B

Support Unicode Set Notation proposal (#12241 by @fisker)

Support Stage 3 proposal Unicode Set Notation via Babel 7.17.0.

See the release blog post of Babel v7.17.0 and the README of this proposal for details.

// Examples

/[\p{Decimal_Number}--[0-9]]/v; // Non-ASCII decimal digits

"Did you see the 👩🏿‍❤️‍💋‍👩🏾 emoji?".match(/\p{RGI_Emoji}/v). // ["👩🏿‍❤️‍💋‍👩🏾"]

/[\r\n\q{\r\n|NEWLINE}]/v; // Matches \r, \n, \r\n or NEWLINE