Skip to content

Commit

Permalink
add text check
Browse files Browse the repository at this point in the history
  • Loading branch information
glowcloud committed May 8, 2024
1 parent dd20c57 commit 250d43b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/execute/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ function getVariableTemplateNames(str) {

// eslint-disable-next-line no-cond-assign
while ((text = re.exec(str))) {
results.push(text[1]);
if (text[1]) results.push(text[1]);
}
return results;
}
Expand Down

0 comments on commit 250d43b

Please sign in to comment.