1
0
Fork 0

urlhandler: fix the 0x0 fix

Since i use a normal array now, the rules are iterated over from top to
down. So i just move the image rule above the 0x0 rule. Restricting 0x0
to .txt didn't do anything because there is a generic .txt rule.
This commit is contained in:
tastytea 2022-11-03 15:50:34 +01:00
parent c70e900d84
commit 73fb0c5089
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 2 additions and 2 deletions

View File

@ -30,6 +30,7 @@ local -a assignments=(
'^https://yewtu\.be/watch\?v=' "${mpv}"
'^https://v.redd.it/' "${mpv}"
'^(gemini|gopher)://' "kristall"
'\.(webm|png|jpe?g|gif|svg|bmp|xcf)(\?.+)?$' "openwwwimg"
'\.(log|txt)$' "readwwwlog"
'^https?://(www\.)?(dpaste|irccloud|termbin)\.com/' "readwwwlog"
'^https?://(www\.)?pastebin\.[^/]+/' "readwwwlog"
@ -39,8 +40,7 @@ local -a assignments=(
'^https?://paste\.centos\.org/' "readwwwlog"
'^https?://paste\.ee/' "readwwwlog"
'^https?://ix\.io/' "readwwwlog"
'^https?://0x0.st/.+\.txt$' "readwwwlog"
'\.(webm|png|jpe?g|gif|svg|bmp|xcf)(\?.+)?$' "openwwwimg"
'^https?://0x0.st/' "readwwwlog"
'(^magnet:|\.torrent$)' "transmission-remote-gtk"
)