summaryrefslogtreecommitdiff
path: root/node_modules/balanced-match
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2023-11-05 17:16:09 +0800
committerlittleblack111 <littleblack11111@gmail.com>2023-11-05 17:16:09 +0800
commitd1d9f00b1bd660842addf5e6b1d1b64c852a9eea (patch)
tree60fb37ae73a1109d95301de5ec9b61b5726a4b61 /node_modules/balanced-match
parent7c85166c4cbdd862fc4252007d2df5befcbc2a58 (diff)
added hover prefixer
Diffstat (limited to 'node_modules/balanced-match')
-rw-r--r--node_modules/balanced-match/.github/FUNDING.yml2
-rw-r--r--node_modules/balanced-match/.npmignore5
-rw-r--r--node_modules/balanced-match/README.md6
-rw-r--r--node_modules/balanced-match/index.js4
-rw-r--r--node_modules/balanced-match/package.json7
5 files changed, 16 insertions, 8 deletions
diff --git a/node_modules/balanced-match/.github/FUNDING.yml b/node_modules/balanced-match/.github/FUNDING.yml
new file mode 100644
index 00000000..cea8b16e
--- /dev/null
+++ b/node_modules/balanced-match/.github/FUNDING.yml
@@ -0,0 +1,2 @@
+tidelift: "npm/balanced-match"
+patreon: juliangruber
diff --git a/node_modules/balanced-match/.npmignore b/node_modules/balanced-match/.npmignore
deleted file mode 100644
index ae5d8c36..00000000
--- a/node_modules/balanced-match/.npmignore
+++ /dev/null
@@ -1,5 +0,0 @@
-test
-.gitignore
-.travis.yml
-Makefile
-example.js
diff --git a/node_modules/balanced-match/README.md b/node_modules/balanced-match/README.md
index 08e918c0..d2a48b6b 100644
--- a/node_modules/balanced-match/README.md
+++ b/node_modules/balanced-match/README.md
@@ -66,6 +66,12 @@ 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 e8d85870..c67a6460 100644
--- a/node_modules/balanced-match/index.js
+++ b/node_modules/balanced-match/index.js
@@ -1,3 +1,4 @@
+'use strict';
module.exports = balanced;
function balanced(a, b, str) {
if (a instanceof RegExp) a = maybeMatch(a, str);
@@ -27,6 +28,9 @@ 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 720eb4d1..ce6073e0 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": "0.4.2",
+ "version": "1.0.2",
"repository": {
"type": "git",
"url": "git://github.com/juliangruber/balanced-match.git"
@@ -9,10 +9,11 @@
"homepage": "https://github.com/juliangruber/balanced-match",
"main": "index.js",
"scripts": {
- "test": "make test"
+ "test": "tape test/test.js",
+ "bench": "matcha test/bench.js"
},
- "dependencies": {},
"devDependencies": {
+ "matcha": "^0.7.0",
"tape": "^4.6.0"
},
"keywords": [