Skip to content

Commit 727cb27

Browse files
committed
update regex extractor
1 parent 205590b commit 727cb27

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib/defaultExtractor.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ function* buildRegExps(context) {
2525
// Variants
2626
'((?=((',
2727
regex.any(
28-
[regex.pattern([/\[[^\s"'\\]+\]/, separator]), regex.pattern([/[^\s"'\[\\]+/, separator])],
28+
[
29+
regex.pattern([/([^\s"'\[\\]+-)?\[[^\s"'\\]+\]/, separator]),
30+
regex.pattern([/[^\s"'\[\\]+/, separator]),
31+
],
2932
true
3033
),
3134
')+))\\2)?',

0 commit comments

Comments
 (0)