This commit is contained in:
2017-05-02 00:25:13 +02:00
parent 2d5bcc8a22
commit 903fc86c9f
2 changed files with 3 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ export let findVarsInHbsString = async (hbsStringArg: string) => {
let hbsString = hbsStringArg // make sure we have a new string object that we may destroy
let varNameArray: string[] = []
let tripleCurlyMatches = hbsString.match(tripleCurlyRegex)
if (tripleCurlyMatches.length > 0) {
if (tripleCurlyMatches) {
hbsString = hbsString.replace(tripleCurlyRegex, '[[[replaced]]]')
}
let doubleCurlyMatches = hbsString.match(doubleCurlyRegex)