Skip to content

Commit

Permalink
fix windows line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
tellnes committed Feb 8, 2013
1 parent 47543c9 commit fd4bcf6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var glob = require('glob')
, path = require('path')
, EventEmitter = require('events').EventEmitter
, util = require('util')
, EOL = require('os').EOL

util.inherits(MLLC, EventEmitter)
module.exports = MLLC
Expand Down Expand Up @@ -63,7 +64,7 @@ function MLLC() {

fs.createReadStream(filepath)
.on('error', next)
.pipe(split())
.pipe(split(EOL))
.on('data', function (lineStr) {
linenumber++
if (lineStr.length > options.length) {
Expand Down

0 comments on commit fd4bcf6

Please sign in to comment.