mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Updated templateSettings regexes in tests, replacing the . with [\s\S]
This commit is contained in:
@@ -93,8 +93,8 @@ $(document).ready(function() {
|
||||
}
|
||||
|
||||
_.templateSettings = {
|
||||
evaluate : /\{\{(.+?)\}\}/g,
|
||||
interpolate : /\{\{=(.+?)\}\}/g
|
||||
evaluate : /\{\{([\s\S]+?)\}\}/g,
|
||||
interpolate : /\{\{=([\s\S]+?)\}\}/g
|
||||
};
|
||||
|
||||
var custom = _.template("<ul>{{ for (key in people) { }}<li>{{= people[key] }}</li>{{ } }}</ul>");
|
||||
@@ -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("<ul><? for (key in people) { ?><li><?= people[key] ?></li><? } ?></ul>");
|
||||
|
||||
Reference in New Issue
Block a user