mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
csv: handle missing line ending
This commit is contained in:
@@ -77,6 +77,9 @@ fn (r mut Reader) read_line() ?string {
|
||||
// no valid line endings found
|
||||
return err_invalid_le
|
||||
}
|
||||
} else {
|
||||
// No line ending on file
|
||||
i = r.data.len-1
|
||||
}
|
||||
}
|
||||
mut line := r.data[r.row_pos..i]
|
||||
|
Reference in New Issue
Block a user