diff --git a/csvparser.go b/csvparser.go index c275894..20a7fee 100644 --- a/csvparser.go +++ b/csvparser.go @@ -108,6 +108,9 @@ func (p *CsvParser) Parse(line string) (map[string]string, error) { // current rune is a delimiter, a value is present and the next char is the next value if isDelimiter || index == maxIndex { + if index == maxIndex && valueStart == -1 { + valueStart = 0 + } state.delimiter = true field := line[valueStart:index] if state.enclosed {