soap

simple xdg-open replacement with fallback
git clone git://git.2f30.org/soap
Log | Files | Refs | LICENSE

commit 6ad7be2b64423374a60a94398762d4792899b7a1
parent 7db3e4faa56106a00397b1e198377b047900c7e0
Author: FRIGN <dev@frign.de>
Date:   Sat,  3 May 2014 16:50:33 +0200

regex: check end of string

Diffstat:
Mconfig.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/config.h b/config.h @@ -3,7 +3,7 @@ static const Pair pairs[] = { /* regex action */ { "\.(jpg|png|tiff)$", "feh %s" }, - { "\.gif", "wget -O /tmp/tmp_gifview.gif %s && gifview -a /tmp/tmp_gifview.gif" }, - { "\.mp3", "st -e mplayer %s" }, + { "\.gif$", "wget -O /tmp/tmp_gifview.gif %s && gifview -a /tmp/tmp_gifview.gif" }, + { "\.mp3$", "st -e mplayer %s" }, { "^(http://|https://)?(www\.)?(youtube.com/watch\?|youtu\.be/)", "youtube-viewer %s" } };