diff options
author | Luke Smith <Luke Smith> | 2022-06-20 10:57:55 -0400 |
---|---|---|
committer | Luke Smith <Luke Smith> | 2022-06-20 10:57:55 -0400 |
commit | 713545c1fc38dda390d0ecb98dadcb8deca5e716 (patch) | |
tree | 1600d09610365089662474e3ce6600dcc996b3a1 /st-urlhandler | |
parent | 3144a61c180b678f6b1c23f06e4b434090199fcb (diff) |
fix #333
Diffstat (limited to 'st-urlhandler')
-rwxr-xr-x | st-urlhandler | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/st-urlhandler b/st-urlhandler index e2a62f4..0eb4586 100755 --- a/st-urlhandler +++ b/st-urlhandler @@ -1,6 +1,6 @@ #!/bin/sh -urlregex="(((http|https|gopher|gemini|ftp|ftps|git)://|www\\.)[a-zA-Z0-9.]*[:]?[a-zA-Z0-9./@$&%?$\#=_~-]*)|((magnet:\\?xt=urn:btih:)[a-zA-Z0-9]*)" +urlregex="(((http|https|gopher|gemini|ftp|ftps|git)://|www\\.)[a-zA-Z0-9.]*[:;a-zA-Z0-9./+@$&%?$\#=_~-]*)|((magnet:\\?xt=urn:btih:)[a-zA-Z0-9]*)" urls="$(sed 's/.*│//g' | tr -d '\n' | # First remove linebreaks and mutt sidebars: grep -aEo "$urlregex" | # grep only urls as defined above. |