Merge pull request #241 from pierg75/fix_urlhandler

Fixed a small issue with the urlhandler.
This commit is contained in:
Luke Smith 2020-08-07 07:20:03 -04:00 committed by GitHub
commit de6fd85eeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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' |