Skip to content

Commit

Permalink
update eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Feb 27, 2021
1 parent a392631 commit a136e4d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,8 @@ const base = {
'regexp/prefer-d': 'error',
// enforce using `+` quantifier
'regexp/prefer-plus-quantifier': 'error',
// enforce using quantifier
'regexp/prefer-quantifier': 'error',
// enforce using `?` quantifier
'regexp/prefer-question-quantifier': 'error',
// enforce using `*` quantifier
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@
"core-js-pure": "file:./packages/core-js-pure",
"david": "^12.0.0",
"es-observable": "git+https://github.com/tc39/proposal-observable.git#d3404f06bc70c7c578a5047dfb3dc813730e3319",
"eslint": "^7.20.0",
"eslint": "^7.21.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-optimize-regex": "^1.2.0",
"eslint-plugin-qunit": "^5.3.0",
"eslint-plugin-radar": "~0.2.1",
"eslint-plugin-regexp": "~0.1.1",
"eslint-plugin-regexp": "~0.2.1",
"eslint-plugin-unicorn": "^28.0.2",
"karma": "^5.2.3",
"karma-chrome-launcher": "^3.1.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/core-js/internals/get-substitution.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ var toObject = require('../internals/to-object');

var floor = Math.floor;
var replace = ''.replace;
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d\d?|<[^>]*>)/g;
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d\d?)/g;
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;

// https://tc39.es/ecma262/#sec-getsubstitution
module.exports = function (matched, str, position, captures, namedCaptures, replacement) {
Expand Down

0 comments on commit a136e4d

Please sign in to comment.