From 15b5d8e1b341b11588f23c66e7ebb27c13f6eaeb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Sun, 19 Jan 2020 18:05:47 +0100 Subject: [PATCH] allow loading some oddly formed vcf files --- cards/list.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cards/list.sh b/cards/list.sh index 9224ace..80abde8 100755 --- a/cards/list.sh +++ b/cards/list.sh @@ -115,7 +115,7 @@ filter_cards(){ printf '%s\n' "$cardfile" cat "$cardfile" done \ - | sed -En ':X; /\nEND:VCARD\r?$/!{ N; bX; }; h; s;\n.*$;;; x; s;^[^\n]+\n;;; + | sed -En ':X; /\nEND;?:VCARD\r?$/!{ N; bX; }; h; s;\n.*$;;; x; s;^[^\n]+\n;;; '"$upcase""$fex" } -- 2.39.2