Be a little more strict on URI parsing to skip unwanted characters - 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 cfca604f39b7db50d890aaa36f1a933d632f99f4
 (DIR) parent eb9224759dccf51d31a11f1d286b14ea973ee920
 (HTM) Author: Quentin Rameau <quinq@fifth.space>
       Date:   Fri,  8 Nov 2019 21:49:44 +0100
       
       Be a little more strict on URI parsing to skip unwanted characters
       
       Signed-off-by: Annna Robert-Houdin <annna@bitreich.org>
       
       Diffstat:
         M annna-start-services                |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/annna-start-services b/annna-start-services
       @@ -89,8 +89,8 @@ then
                        [ "$user" = "${botname}" ] && continue
        
                        uri="$(printf "%s\n" "${text}" \
       -                        | sed 's,.*\(https\{0\,1\}://[^ ]\{1\,\}\).*,\1,' \
       -                        | grep 'https\{0,1\}://[^ ]')"
       +                        | grep 'https\{0,1\}://[^ ]\{1,\}' \
       +                        | sed "s_.*\(https\{0,1\}://[^]:?#[@!$&'()*+,;= ]\{1,\}\).*_\1_")"
                        case "${text}" in
                        *\#nospoil*)
                                ;;