petit bug sur les lignes de 1 caractère
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user