Merge pull request #224 from allain/0.5

\r\n incorrectly getting replaced with \r in unbuild.js
This commit is contained in:
Mark Nadal 2016-10-05 16:07:51 -06:00 committed by GitHub
commit 8939bd1ed6

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