fix template expression parse of regex and sequence (#2488)

fixes #2487
This commit is contained in:
kzc
2017-11-16 12:34:57 -05:00
committed by Alex Lam S.L
parent 9632f79e46
commit e826973b76
2 changed files with 50 additions and 1 deletions

View File

@@ -2107,7 +2107,8 @@ function parse($TEXT, options) {
}));
while (S.token.end === false) {
next();
segments.push(expression());
handle_regexp();
segments.push(expression(true));
if (!is_token("template_substitution")) {
unexpected();