Skip to content

Commit c5290d6

Browse files
BREAKING: Handle ES2018 capture names (#247)
Use RegExpIdentifierName for named captures/backreferences to match ES2018, and update build tools to make it work
1 parent 650c62d commit c5290d6

File tree

6 files changed

+3665
-1404
lines changed

6 files changed

+3665
-1404
lines changed

.babelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"plugins": [
3+
["@babel/plugin-proposal-unicode-property-regex", { "useUnicodeFlag": false }],
34
[
45
"@babel/plugin-transform-runtime",
56
{

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module.exports = {
77
},
88
"extends": "eslint:recommended",
99
"parserOptions": {
10+
"ecmaVersion": 9,
1011
"sourceType": "module"
1112
},
1213
"rules": {

0 commit comments

Comments
 (0)