off by one error for lines with parametrized values
This commit is contained in:
parent
8a5f3db23d
commit
e3c3b0e6f9
|
@ -31,9 +31,9 @@ func vCardValue(line string) string {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
if end < start {
|
if end < start {
|
||||||
end = len(line) - 1
|
end = len(line)
|
||||||
}
|
}
|
||||||
return line[start+1 : end+1]
|
return line[start+1 : end]
|
||||||
}
|
}
|
||||||
|
|
||||||
type Contact struct {
|
type Contact struct {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user