From cd4a7460b0d53cdb5df6679bf7f26fa7f90eccce Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 26 Jan 2015 09:14:49 -0500 Subject: [PATCH] feature(util) rendy: improve speed --- lib/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.js b/lib/util.js index eda88928..b9927e8f 100644 --- a/lib/util.js +++ b/lib/util.js @@ -269,7 +269,7 @@ }); if (~result.indexOf('{{')) - result = result.replace(/{{\s*.*\s*}}/, ''); + result = result.replace(/{{.*}}/g, ''); return result; };