diff options
author | Luke Smith <luke@lukesmith.xyz> | 2022-08-15 08:02:47 -0400 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2022-08-15 08:02:47 -0400 |
commit | 6f33b1ba55f3aea06b870cd4e384b022ecc695c9 (patch) | |
tree | 96e084ff52fa64865003e50f65cc46861e2e950d /st-urlhandler | |
parent | 3144a61c180b678f6b1c23f06e4b434090199fcb (diff) | |
parent | 5858b22bef5f980271178272fa4e690dbfcc4c0b (diff) |
Merge branch 'equwal-lukesmith-0.8.5'
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. |