From: Paul Hänsch Date: Sun, 19 Jan 2020 17:05:47 +0000 (+0100) Subject: allow loading some oddly formed vcf files X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=15b5d8e1b341b11588f23c66e7ebb27c13f6eaeb;p=lobster allow loading some oddly formed vcf files --- 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" }