]> git.plutz.net Git - confetti/blobdiff - pages/cards.sh
dirty fix: do not mess up with empty tags
[confetti] / pages / cards.sh
index 106484b00cd41af64a6652fe305ad58e99c448b3..08b88b94e11b75e8eeeab786df667adb1912af3c 100755 (executable)
@@ -142,7 +142,7 @@ vcf_parse() {
       tag=*) ot=''
             printf %s "$line" \
             | sed -r 's:^tag=::;s:\;([A-Z+_-]+="[^"]+"|[A-Z+_-]+=[^\;]+):\n\1:g;' \
-            | sed -r 's:([A-Z+_-]+)="?(.*)"?:tag\[\1\]="\2":g' \
+            | sed -rn 's:([A-Z+_-]+)="?(.+)"?:tag\[\1\]="\2":gp' \
             | sed -r '/^ *$/d' \
             | sort |while read -r tag; do
               nt="$(printf %s "$tag" |sed -r 's:^tag\[([A-Z+_-]+)\]="(.*)"$:\1:')"