mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-22 15:25:58 +01:00
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>
This commit is contained in:
parent
e187610a23
commit
7e5b697352
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/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:
|
# First remove linebreaks and mutt sidebars:
|
||||||
urls="$(sed 's/.*│//g' | tr -d '\n' |
|
urls="$(sed 's/.*│//g' | tr -d '\n' |
|
||||||
|
|
Loading…
Reference in a new issue