X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=cards%2Ffilter_card.sh;fp=cards%2Ffilter_card.sh;h=e7d1114a2deb3077c0bfe10584ed3dea044d4962;hp=183278ffb94e96a0be465edef66baf9a48d45f7d;hb=a6e3da877a73be739ac96b12d9cde2190b24a423;hpb=baf5238a2cb8a6287d31f196ebdbeb11d316226c diff --git a/cards/filter_card.sh b/cards/filter_card.sh index 183278f..e7d1114 100755 --- a/cards/filter_card.sh +++ b/cards/filter_card.sh @@ -30,7 +30,7 @@ filter="$( else printf '^%s:%s' "$filter_type" "$filter_text" fi - done | sed -r \ + done | sed -E \ 's;\|+;\|;g; s;\^+;\^;g; s;:\|;:;g; :X; s;\^[^:]*:\^;\^;g; /\^[^:]*:\^/bX; s;^\^;;; s;\^[^:]*:$;;;'