Skip to content

Commit 035e88c

Browse files
authored
Optimize variable replacement regex
1 parent 01b83b3 commit 035e88c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parser/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const ReplacementTracker = require('./replacement-tracker'),
2626

2727
REGEX_ALL_BACKSLASHES = /\\/g,
2828
REGEX_LEADING_SLASHES = /^\/+/,
29-
REGEX_ALL_VARIABLES = /{{[^{}]*[.:/?#@&\]][^{}]*}}/g,
29+
REGEX_ALL_VARIABLES = /{{[^{}]*}}/g,
3030

3131
HASH_SEPARATOR = '#',
3232
PATH_SEPARATOR = '/',

0 commit comments

Comments
 (0)