This commit is contained in:
Andris Reinman 2018-04-28 23:40:26 +03:00
parent 2510495ecf
commit d8ee6530e3
2 changed files with 2 additions and 2 deletions

View file

@ -440,7 +440,7 @@ class TokenParser {
throw new Error('Unexpected whitespace at position ' + (this.pos + i));
}
if (this.currentNode.value.substr(-1) === '*' && this.currentNode.value.substr(-2, 1) !== ':') {
if (this.currentNode.value !== '*' && this.currentNode.value.substr(-1) === '*' && this.currentNode.value.substr(-2, 1) !== ':') {
throw new Error('Unexpected whitespace at position ' + (this.pos + i));
}

View file

@ -276,7 +276,7 @@ function getEmailTemplates(tags, callback) {
return entry.message;
})
.filter(entry => entry);
.filter(entry => entry && !entry.disabled);
templates = newTemplates;
return callback(null, templates.map(template => renderEmailTemplate(tags, template)));