Skip to content

Commit 6821042

Browse files
authored
fix: support - with //u flag (#15)
1 parent 239192d commit 6821042

File tree

6 files changed

+25
-7
lines changed

6 files changed

+25
-7
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
]
7070
},
7171
"dependencies": {
72-
"escape-string-regexp": "^2.0.0",
72+
"escape-string-regexp": "^4.0.0",
7373
"lodash.sortby": "^4.7.0",
7474
"lodash.uniq": "^4.5.0",
7575
"lodash.uniqwith": "^4.5.0"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[
2+
"foo-bar"
3+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
foo-bar
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
- match text: **foo-bar**
3+
- captures: **[]**
4+
- startIndex: **0**
5+
- endIndex: **7**
6+
7+
```
8+
**foo-bar**
9+
10+
```
11+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[
2+
{
3+
"match": "foo-bar",
4+
"captures": [],
5+
"startIndex": 0,
6+
"endIndex": 7
7+
}
8+
]

yarn.lock

+1-6
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ escalade@^3.1.1:
408408
resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40"
409409
integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==
410410

411-
escape-string-regexp@4.0.0:
411+
escape-string-regexp@4.0.0, escape-string-regexp@^4.0.0:
412412
version "4.0.0"
413413
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
414414
integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==
@@ -418,11 +418,6 @@ escape-string-regexp@^1.0.5:
418418
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
419419
integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=
420420

421-
escape-string-regexp@^2.0.0:
422-
version "2.0.0"
423-
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344"
424-
integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==
425-
426421
execa@^5.1.1:
427422
version "5.1.1"
428423
resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd"

0 commit comments

Comments
 (0)