\r\n was incorrectly getting replaced with \r, which mangled things

This commit is contained in:
Allain Lalonde 2016-10-05 15:43:37 -04:00
parent 18dc2f2db6
commit 81a48ff272

View File

@ -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();
}());
}());
}());