diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2023-10-14 16:27:06 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2023-10-14 16:27:06 +0800 |
| commit | 2db6defc0b555d93d2363ba6c6dfa19df7dc7c11 (patch) | |
| tree | a92c596973b150bbd1723b55facf38e0ab6258d8 /node_modules/balanced-match/index.js | |
| parent | 6dce4e2e8ed35a26af389b7ab388113381350444 (diff) | |
update
Diffstat (limited to 'node_modules/balanced-match/index.js')
| -rw-r--r-- | node_modules/balanced-match/index.js | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/node_modules/balanced-match/index.js b/node_modules/balanced-match/index.js index c67a6460..e8d85870 100644 --- a/node_modules/balanced-match/index.js +++ b/node_modules/balanced-match/index.js @@ -1,4 +1,3 @@ -'use strict'; module.exports = balanced; function balanced(a, b, str) { if (a instanceof RegExp) a = maybeMatch(a, str); @@ -28,9 +27,6 @@ function range(a, b, str) { var i = ai; if (ai >= 0 && bi > 0) { - if(a===b) { - return [ai, bi]; - } begs = []; left = str.length; |
