1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

csv: fix missing last column

This commit is contained in:
sambeckingham
2020-04-20 20:49:05 +01:00
committed by GitHub
parent f725b93019
commit b1459ade69
2 changed files with 11 additions and 5 deletions

View File

@ -115,6 +115,7 @@ fn (r mut Reader) read_record() ?[]string {
// QTODO i = ...
j := line.index(r.delimiter.str()) or {
// last
fields << line[..line.len]
break
}
i = j