Skip to content

Commit d030793

Browse files
Add support for Unicode 13 in regexps (update regexpu-core) (#11244)
* Update regexpu-core * Add tests
1 parent cbbf0bc commit d030793

6 files changed

Lines changed: 7 additions & 3 deletions

File tree

  • packages
    • babel-helper-create-regexp-features-plugin
    • babel-plugin-proposal-unicode-property-regex/test/fixtures
    • babel-plugin-transform-dotall-regex/test/fixtures/dotall-regex/with-unicode-property-escape

packages/babel-helper-create-regexp-features-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"dependencies": {
2121
"@babel/helper-annotate-as-pure": "^7.8.3",
2222
"@babel/helper-regex": "^7.8.3",
23-
"regexpu-core": "^4.6.0"
23+
"regexpu-core": "^4.7.0"
2424
},
2525
"peerDependencies": {
2626
"@babel/core": "^7.0.0"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/\p{Script_Extensions=Yezi}/u;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/[\u060C\u061B\u061F\u0660-\u0669\u{10E80}-\u{10EA9}\u{10EAB}-\u{10EAD}\u{10EB0}\u{10EB1}]/u;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/\p{Script_Extensions=Yezi}/u;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/(?:[\u060C\u061B\u061F\u0660-\u0669]|\uD803[\uDE80-\uDEA9\uDEAB-\uDEAD\uDEB0\uDEB1])/;

packages/babel-plugin-transform-dotall-regex/test/fixtures/dotall-regex/with-unicode-property-escape/output.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)