mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
\r\n was incorrectly getting replaced with \r, which mangled things
This commit is contained in:
parent
18dc2f2db6
commit
81a48ff272
@ -66,11 +66,11 @@ var path = function(){
|
||||
}
|
||||
|
||||
var undent = function(code, n){
|
||||
var regex = /\n\t\t/ig;
|
||||
var regex = /\n\t\t/g;
|
||||
if(1 === n){
|
||||
regex = /\n\t/ig;
|
||||
regex = /\n\t/g;
|
||||
}
|
||||
return code.replace(regex, '');
|
||||
return code.replace(regex, '\n');
|
||||
}
|
||||
|
||||
;(function(){
|
||||
@ -95,4 +95,4 @@ var undent = function(code, n){
|
||||
write(file, undent(code));
|
||||
recurse();
|
||||
}());
|
||||
}());
|
||||
}());
|
||||
|
Loading…
x
Reference in New Issue
Block a user