mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
Ensure _.template coerces the text argument to a string.
This commit is contained in:
@@ -6153,7 +6153,7 @@
|
||||
// and Laura Doktorova's doT.js
|
||||
// https://github.com/olado/doT
|
||||
var settings = lodash.templateSettings;
|
||||
text || (text = '');
|
||||
text = String(text || '');
|
||||
|
||||
// avoid missing dependencies when `iteratorTemplate` is not defined
|
||||
options = iteratorTemplate ? defaults({}, options, settings) : settings;
|
||||
|
||||
Reference in New Issue
Block a user