mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
Remove multi-line comment wrap from _.template sourceURLs. [closes #738]
This commit is contained in:
@@ -8763,8 +8763,8 @@
|
|||||||
|
|
||||||
// use a sourceURL for easier debugging
|
// use a sourceURL for easier debugging
|
||||||
// http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl
|
// http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl
|
||||||
var sourceURL = options.sourceURL || ('/lodash/template/source[' + (++templateCounter) + ']');
|
var sourceURL = 'sourceURL' in options ? options.sourceURL : ('/lodash/template/source[' + (++templateCounter) + ']');
|
||||||
sourceURL = sourceURL ? ('\n/*\n//# sourceURL=' + sourceURL + '\n*/') : '';
|
sourceURL = sourceURL ? ('\n//# sourceURL=' + sourceURL) : '';
|
||||||
|
|
||||||
string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
|
string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
|
||||||
interpolateValue || (interpolateValue = esTemplateValue);
|
interpolateValue || (interpolateValue = esTemplateValue);
|
||||||
|
|||||||
Reference in New Issue
Block a user