Explorar o código

fix csv parser choking on newline at end of file

Alexander Rose %!s(int64=5) %!d(string=hai) anos
pai
achega
84b988ea96
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;