From 81ce3ee0bdd3b83b79c97a48ec1895729624d4ce Mon Sep 17 00:00:00 2001 From: Ryan W Tenney Date: Tue, 5 Oct 2010 22:34:24 -0400 Subject: [PATCH] Updated `templateSettings` regexes in tests, replacing the `.` with `[\s\S]` --- test/utility.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/utility.js b/test/utility.js index 8013a6a87..066f8ba67 100644 --- a/test/utility.js +++ b/test/utility.js @@ -93,8 +93,8 @@ $(document).ready(function() { } _.templateSettings = { - evaluate : /\{\{(.+?)\}\}/g, - interpolate : /\{\{=(.+?)\}\}/g + evaluate : /\{\{([\s\S]+?)\}\}/g, + interpolate : /\{\{=([\s\S]+?)\}\}/g }; var custom = _.template(""); @@ -108,8 +108,8 @@ $(document).ready(function() { equals(quoteInStatementAndBody({foo: "bar"}), "Statement quotes and 'quotes'."); _.templateSettings = { - evaluate : /<\?(.+?)\?>/g, - interpolate : /<\?=(.+?)\?>/g + evaluate : /<%([\s\S]+?)%>/g, + interpolate : /<%=([\s\S]+?)%>/g }; var customWithSpecialChars = _.template("");