Skip to content

Commit

Permalink
update regex extractor
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed May 12, 2022
1 parent 205590b commit 727cb27
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/defaultExtractor.js
Expand Up @@ -25,7 +25,10 @@ function* buildRegExps(context) {
// Variants
'((?=((',
regex.any(
[regex.pattern([/\[[^\s"'\\]+\]/, separator]), regex.pattern([/[^\s"'\[\\]+/, separator])],
[
regex.pattern([/([^\s"'\[\\]+-)?\[[^\s"'\\]+\]/, separator]),
regex.pattern([/[^\s"'\[\\]+/, separator]),
],
true
),
')+))\\2)?',
Expand Down

0 comments on commit 727cb27

Please sign in to comment.