From 42ab825f465e10172106dd2fa06fc569580165ef Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 26 Jan 2015 07:39:37 -0500 Subject: [PATCH] feature(util) render: speed up in 10 times --- lib/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.js b/lib/util.js index 951c0d97..eda88928 100644 --- a/lib/util.js +++ b/lib/util.js @@ -264,7 +264,7 @@ .keys(view) .forEach(function(param) { str = view[param]; - regExp = RegExp('{{\\s*' + param + '\\s*}}', 'g'); + regExp = RegExp('{{\\s' + param + '\\s}}', 'g'); result = result.replace(regExp, str); });