X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=pages%2Fcards.sh;h=a90981c6a16d02ec265bc80653aed9b29b90eca4;hp=506022ff727bcd9ba0507f9945806c093394456a;hb=2ea56a62d0ef6e9d295d0b8931a071e6f2e0a963;hpb=16a2240ce347132c7000ca22989e83801cf3ebf0 diff --git a/pages/cards.sh b/pages/cards.sh index 506022f..a90981c 100755 --- a/pages/cards.sh +++ b/pages/cards.sh @@ -60,7 +60,8 @@ list_hi_companies(){ list_categories() { catfile="${_DATA}/mappings/categories" - sort -u "$catfile" + sort -u "$catfile" \ + | sed -r '/^[\t ]*$/d' } listcards() { @@ -76,7 +77,7 @@ listcards() { *:*) expr="${each%%:*}"'(\;[^\n]+)*:[^\n]*'"(${each#*:})";; *) expr="(${each})";; esac - filterex='/(^|\n)'"${expr}"'/{'"${filterex}"'}' + filterex='/(^|\n)'"${expr}"'/I{'"${filterex}"'}' done for file in "${_DATA}/vcard/"*.vcf; do