File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -200,12 +200,12 @@ function readline(fh, chomp) {
200
200
fs . seekSync ( fh . fd ,
201
201
Buffer . byteLength ( up_to_newline + sep , fh . encoding ) + starting , 0 ) ;
202
202
203
- return ( chomp ? up_to_newline : up_to_newline + sep ) ;
203
+ return ( chomp ? up_to_newline : up_to_newline + sep ) . replace ( / \r \n / , "\n" ) ;
204
204
}
205
205
}
206
206
207
207
fs . seekSync ( fh . fd , position , 0 ) ;
208
- return string ;
208
+ return string . replace ( / \r \n / , "\n" ) ;
209
209
} ;
210
210
211
211
@@ -218,7 +218,7 @@ op.readallfh = function(fh) {
218
218
total += bytesRead ;
219
219
var all = Buffer . concat ( [ all , buf ] , total ) ;
220
220
}
221
- return iconv . decode ( all , fh . encoding ) ;
221
+ return iconv . decode ( all , fh . encoding ) . replace ( / \r \n / , "\n" ) ;
222
222
} ;
223
223
224
224
op . seekfh = function ( fh , offset , whence , ctx ) {
You can’t perform that action at this time.
0 commit comments