Skip to content
This repository has been archived by the owner on Jun 19, 2019. It is now read-only.

Commit

Permalink
Merge pull request #58 from bubbleboy14/master
Browse files Browse the repository at this point in the history
fixed getNextLine
  • Loading branch information
Ryan McGrath committed Aug 2, 2013
2 parents 31cf44b + be1e0e2 commit 81d7fa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wrench.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ exports.LineReader.prototype = {

getNextLine: function() {
var lineEnd = this.buffer.indexOf("\n"),
result = this.buffer.substring(0, lineEnd ? lineEnd : this.buffer.length);
result = this.buffer.substring(0, lineEnd != -1 ? lineEnd : this.buffer.length);

this.buffer = this.buffer.substring(result.length + 1, this.buffer.length);
return result;
Expand Down

0 comments on commit 81d7fa5

Please sign in to comment.