mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-23 07:35:59 +01:00
fix #333
This commit is contained in:
parent
3144a61c18
commit
713545c1fc
2 changed files with 2 additions and 2 deletions
2
PKGBUILD
2
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}")
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue