diff options
author | Pierguido Lambri <plambri@redhat.com> | 2020-08-07 09:44:29 +0100 |
---|---|---|
committer | Pierguido Lambri <plambri@redhat.com> | 2020-08-07 09:53:57 +0100 |
commit | 7e5b6973525f6c78f533d25a5efe75e5c946b910 (patch) | |
tree | 031c5c944512a544704fc6935d46ffc2b62e94ef | |
parent | e187610a230803ddca6b86fe0620cacdee177ac3 (diff) |
Fixed a small issue with the urlhandler.
Urls lile:
https://whatever.domain/~myprecious/usefull-blog.html
https://brb.imback.maybe/isit/blah#sure
Were not propery handled (everything after either '#' or '~' were ignored).
Escaped '#' and added '~' in the regex.
Signed-off-by: Pierguido Lambri <plambri@redhat.com>
-rwxr-xr-x | st-urlhandler | 2 |
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' | |