Browse Source

fix csv parser choking on newline at end of file

Alexander Rose 5 years ago
parent
commit
84b988ea96
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/mol-io/reader/csv/parser.ts

+ 1 - 1
src/mol-io/reader/csv/parser.ts

@@ -174,7 +174,7 @@ function moveNextInternal(state: State) {
 
     if (tokenizer.position >= tokenizer.length) {
         state.tokenType = CsvTokenType.End;
-        return true;
+        return false;
     }
 
     tokenizer.tokenStart = tokenizer.position;