Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix mustache variable in subject

  • Loading branch information...
commit 3a5815cdcd86ffd01b0307fe04e12cb53c161390 1 parent a797ad9
@jiem authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 index.js
View
4 index.js
@@ -77,8 +77,8 @@ function initMustache(email) {
if (email.html)
email.html = email.html.replace(mustacheVarReg, '{{$1}}');
- email.mustacheVars = {};
- match = (email.html || email.text).match(mustacheVarReg);
+ email.mustacheVars = {};
+ match = (email.subject + email.text + email.html).match(mustacheVarReg);
if (match)
for (i = 0; mustacheVar = match[i]; i++)
email.mustacheVars[mustacheVar.substring(2, mustacheVar.length - 2)] = 1;
Please sign in to comment.
Something went wrong with that request. Please try again.