diff --git a/vcf2fritzbox.go b/vcf2fritzbox.go index 49a897c..6454eb5 100644 --- a/vcf2fritzbox.go +++ b/vcf2fritzbox.go @@ -20,7 +20,8 @@ func optExit(err error) { } 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 {