summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-08-07 07:20:03 -0400
committerGitHub <noreply@github.com>2020-08-07 07:20:03 -0400
commitde6fd85eeb544548ed5ad23a639eedd6af510036 (patch)
tree031c5c944512a544704fc6935d46ffc2b62e94ef
parente187610a230803ddca6b86fe0620cacdee177ac3 (diff)
parent7e5b6973525f6c78f533d25a5efe75e5c946b910 (diff)
Merge pull request #241 from pierg75/fix_urlhandler
Fixed a small issue with the urlhandler.
-rwxr-xr-xst-urlhandler2
1 files changed, 1 insertions, 1 deletions
diff --git a/st-urlhandler b/st-urlhandler
index d44bb99..0d39dd5 100755
--- a/st-urlhandler
+++ b/st-urlhandler
@@ -1,6 +1,6 @@
#!/bin/sh
-urlregex="(((http|https)://|www\\.)[a-zA-Z0-9.]*[:]?[a-zA-Z0-9./@$&%?$#=_-]*)|((magnet:\\?xt=urn:btih:)[a-zA-Z0-9]*)"
+urlregex="(((http|https)://|www\\.)[a-zA-Z0-9.]*[:]?[a-zA-Z0-9./@$&%?$\#=_~-]*)|((magnet:\\?xt=urn:btih:)[a-zA-Z0-9]*)"
# First remove linebreaks and mutt sidebars:
urls="$(sed 's/.*│//g' | tr -d '\n' |