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 | |
| parent | 6dce4e2e8ed35a26af389b7ab388113381350444 (diff) | |
update
Diffstat (limited to 'node_modules/balanced-match')
| -rw-r--r-- | node_modules/balanced-match/.github/FUNDING.yml | 2 | ||||
| -rw-r--r-- | node_modules/balanced-match/.npmignore | 5 | ||||
| -rw-r--r-- | node_modules/balanced-match/README.md | 6 | ||||
| -rw-r--r-- | node_modules/balanced-match/index.js | 4 | ||||
| -rw-r--r-- | node_modules/balanced-match/package.json | 7 |
5 files changed, 8 insertions, 16 deletions
diff --git a/node_modules/balanced-match/.github/FUNDING.yml b/node_modules/balanced-match/.github/FUNDING.yml deleted file mode 100644 index cea8b16e..00000000 --- a/node_modules/balanced-match/.github/FUNDING.yml +++ /dev/null @@ -1,2 +0,0 @@ -tidelift: "npm/balanced-match" -patreon: juliangruber diff --git a/node_modules/balanced-match/.npmignore b/node_modules/balanced-match/.npmignore new file mode 100644 index 00000000..ae5d8c36 --- /dev/null +++ b/node_modules/balanced-match/.npmignore @@ -0,0 +1,5 @@ +test +.gitignore +.travis.yml +Makefile +example.js diff --git a/node_modules/balanced-match/README.md b/node_modules/balanced-match/README.md index d2a48b6b..08e918c0 100644 --- a/node_modules/balanced-match/README.md +++ b/node_modules/balanced-match/README.md @@ -66,12 +66,6 @@ With [npm](https://npmjs.org) do: npm install balanced-match ``` -## Security contact information - -To report a security vulnerability, please use the -[Tidelift security contact](https://tidelift.com/security). -Tidelift will coordinate the fix and disclosure. - ## License (MIT) 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; diff --git a/node_modules/balanced-match/package.json b/node_modules/balanced-match/package.json index ce6073e0..720eb4d1 100644 --- a/node_modules/balanced-match/package.json +++ b/node_modules/balanced-match/package.json @@ -1,7 +1,7 @@ { "name": "balanced-match", "description": "Match balanced character pairs, like \"{\" and \"}\"", - "version": "1.0.2", + "version": "0.4.2", "repository": { "type": "git", "url": "git://github.com/juliangruber/balanced-match.git" @@ -9,11 +9,10 @@ "homepage": "https://github.com/juliangruber/balanced-match", "main": "index.js", "scripts": { - "test": "tape test/test.js", - "bench": "matcha test/bench.js" + "test": "make test" }, + "dependencies": {}, "devDependencies": { - "matcha": "^0.7.0", "tape": "^4.6.0" }, "keywords": [ |
