diff --git a/lib/util.js b/lib/util.js index 90147918..9bcf38a8 100644 --- a/lib/util.js +++ b/lib/util.js @@ -381,7 +381,7 @@ result = result.replace(regExp, str); }); - if (result.indexOf('{{')) + if (~result.indexOf('{{')) result.replace(/{{\s*.*\s*}}/, ''); return result;