mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
Merge pull request #224 from allain/0.5
\r\n incorrectly getting replaced with \r in unbuild.js
This commit is contained in:
commit
8939bd1ed6
@ -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