summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <Luke Smith>2022-06-20 10:57:55 -0400
committerLuke Smith <Luke Smith>2022-06-20 10:57:55 -0400
commit713545c1fc38dda390d0ecb98dadcb8deca5e716 (patch)
tree1600d09610365089662474e3ce6600dcc996b3a1
parent3144a61c180b678f6b1c23f06e4b434090199fcb (diff)
fix #333
-rw-r--r--PKGBUILD2
-rwxr-xr-xst-urlhandler2
2 files changed, 2 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 03d6f9f..66dd05e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,7 +13,7 @@ options=('zipman')
depends=('libxft')
makedepends=('ncurses' 'libxext' 'git')
optdepends=('dmenu: feed urls to dmenu')
-source=('git://github.com/LukeSmithxyz/st')
+source=(git+https://github.com/LukeSmithxyz/st)
sha1sums=('SKIP')
provides=("${_pkgname}")
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.