From 07d263e538caebf96cb5dc62f4cdbad0036febf5 Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Wed, 2 Feb 2022 15:32:56 +0100 Subject: [PATCH] Whitelist colon for st-url. --- _suckless/st/st-url | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_suckless/st/st-url b/_suckless/st/st-url index 13ea0f3..0464142 100644 --- a/_suckless/st/st-url +++ b/_suckless/st/st-url @@ -1,6 +1,6 @@ #!/bin/sh -urlregex="(((http|https|gopher|gemini|ftp|ftps|git)://|www\\.)[a-zA-Z0-9.]*[:]?[a-zA-Z0-9.,/@$&%?$\#=_~-]*)|((magnet:\\?xt=urn:btih:)[a-zA-Z0-9]*)" +urlregex="(((http|https|gopher|gemini|ftp|ftps|git)://|www\\.)[a-zA-Z0-9.]*[:]?[a-zA-Z0-9.,/:@$&%?$\#=_~-]*)|((magnet:\\?xt=urn:btih:)[a-zA-Z0-9]*)" urls="$(sed 's/.*│//g' | tr -d '\n' | # First remove linebreaks and mutt sidebars: grep -aEo "$urlregex" | # grep only urls as defined above.