kopia lustrzana https://github.com/c9/core
support windows line endings
rodzic
8fed2e6b28
commit
df687ee807
|
@ -338,7 +338,7 @@ function rewriteDefines(sources, opts){
|
|||
// include literal
|
||||
}
|
||||
else if (pkg.id.indexOf("text!") > -1) {
|
||||
var source = pkg.source.replace(/\\/g, '\\\\').replace(/\n/g, "\\n").replace(/"/g, '\\"');
|
||||
var source = pkg.source.replace(/\\/g, '\\\\').replace(/\r?\n/g, "\\n").replace(/"/g, '\\"');
|
||||
pkg.source = 'define("' + pkg.id + '",[],"'
|
||||
+ source
|
||||
+ '");';
|
||||
|
|
Ładowanie…
Reference in New Issue