Permalink
Browse files

fixed issue with input and nulls

  • Loading branch information...
1 parent a96a229 commit c50b40605e8773b1b9dddc96d91bfa7ae37fcbb6 Micha Niskin committed Jun 21, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 jsawk
View
@@ -1005,12 +1005,12 @@ replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {
while (blankcount < 10){
line=readline();
- if (line=="")
+ if (!line || line.length==0)
blankcount++;
- else
+ else
blankcount=0;
if (line==end) break;
- input += line;
+ input += (line ? line : "");
input += "\n";
}
input = input.substring(0, input.length-blankcount);

0 comments on commit c50b406

Please sign in to comment.