off by one error for lines with parametrized values

master
gutmet 2022-03-27 23:16:38 +02:00
parent 8a5f3db23d
commit e3c3b0e6f9
1 changed files with 2 additions and 2 deletions

View File

@ -31,9 +31,9 @@ func vCardValue(line string) string {
return ""
}
if end < start {
end = len(line) - 1
end = len(line)
}
return line[start+1 : end+1]
return line[start+1 : end]
}
type Contact struct {