mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-22 15:25:58 +01:00
Merge pull request #241 from pierg75/fix_urlhandler
Fixed a small issue with the urlhandler.
This commit is contained in:
commit
de6fd85eeb
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