]> git.plutz.net Git - lobster/commitdiff
allow loading some oddly formed vcf files
authorPaul Hänsch <paul@plutz.net>
Sun, 19 Jan 2020 17:05:47 +0000 (18:05 +0100)
committerPaul Hänsch <paul@plutz.net>
Sun, 19 Jan 2020 17:05:47 +0000 (18:05 +0100)
cards/list.sh

index 9224ace75460e82691b865dcb970b27c36910643..80abde80df442143c1278ba12acd07a7ab19bc1f 100755 (executable)
@@ -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"
 }