Get rid of possible trailing `#...' in gopherpedia URLs - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit bb4ea1a99aa12bf04ab488250f25438a633cfdf5 DIR parent 873eaf767015813f248347aad99a5a3261759302 HTML Author: Leonardo Taccari <iamleot@gmail.com> Date: Sun, 7 Jun 2020 16:58:28 +0200 Get rid of possible trailing `#...' in gopherpedia URLs Signed-off-by: Annna Robert-Houdin <annna@bitreich.org> Diffstat: M annna-start-services | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/annna-start-services b/annna-start-services @@ -96,7 +96,7 @@ annna_common() { *en.wikipedia.org/wiki*) if ! regeximatch "$uri" '\.(jpg,bmp,gif,png,tiff,avi,mp4,webm,mkv,pdf,ps,eps)$'; then - nuri="$(printf 'gopherpedia: %s \n' "${uri}" | sed "s;.*en.wikipedia.org/wiki;gopher://gopherpedia.com/0;")" + nuri="$(printf 'gopherpedia: %s \n' "${uri}" | sed -e "s;.*en.wikipedia.org/wiki;gopher://gopherpedia.com/0;" -e "s;#.*$;;")" curi="$(9 htmlfmt < "${tmpf}" | /br/bin/bitreich-paste)" nocuri=0 fi