Remove teh query from teh wikipedia thingies! - annna - Annna the nice friendly bot.
 (HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
       ---
 (DIR) commit c054ca53c17eb8024d9b5688f527e8e457b6d310
 (DIR) parent c6f265a8717428c2d7b2ba87d35a182ec3eaa7d9
 (HTM) Author: Julian Schweinsberg <pazz0@0xfa.de>
       Date:   Wed, 30 Jul 2025 20:44:36 +0200
       
       Remove teh query from teh wikipedia thingies!
       
       Signed-off-by: Annna Robert-Houdin <annna@bitreich.org>
       
       Diffstat:
         M annna-message-common                |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/annna-message-common b/annna-message-common
       @@ -253,7 +253,7 @@ case "${text}" in
                *.wikipedia.org/wiki/*)
                        if ! regeximatch "$uri" '\.(jpg,bmp,gif,png,tiff,avi,mp4,webm,mkv,pdf,ps,eps)$';
                        then
       -                        nuri="$(printf '%s\n' "${uri}" | sed -e "s;/wiki/;/api/rest_v1/page/pdf/;" -e "s;#.*$;;")"
       +                        nuri="$(printf '%s\n' "${uri}" | sed -Ee "s;/wiki/;/api/rest_v1/page/pdf/;" -e "s;(\?|#).*$;;")"
                                nuris="$(printf 'pdf: %s\n' "${nuri}")"
                                nocuri=1
                        fi