do multiple replace in one go
This commit is contained in:
parent
102fc57c2a
commit
8a5f3db23d
|
@ -20,7 +20,8 @@ func optExit(err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func unfold(s string) string {
|
func unfold(s string) string {
|
||||||
return strings.ReplaceAll(strings.ReplaceAll(s, "\r\n ", ""), "\r\n\t", "")
|
replacer := strings.NewReplacer("\r\n ", "", "\r\n\t", "")
|
||||||
|
return replacer.Replace(s)
|
||||||
}
|
}
|
||||||
|
|
||||||
func vCardValue(line string) string {
|
func vCardValue(line string) string {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user