allow & and * characters in meme tags - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit a713a17b0793795f9f5485cd0aa334afcf9496f9 | |
parent 38e9d73184c6d2065a5ab9d9baf80ce92367abef | |
Author: Anders Damsgaard <[email protected]> | |
Date: Mon, 20 Feb 2023 21:20:00 +0100 | |
allow & and * characters in meme tags | |
Signed-off-by: Annna Robert-Houdin <[email protected]> | |
Diffstat: | |
M annna-message-common | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/annna-message-common b/annna-message-common | |
@@ -1159,7 +1159,7 @@ esac | |
printf '%s' "$text" | awk -v taglimit="$printnhashtags" ' | |
$0 !~ /#nospoil/ { | |
- while (match($0, /[#*&]+[^#^*^& /"'\'',?!;$\001]+/)) { | |
+ while (match($0, /[#*&]+[^# /"'\'',?!;$\001]+/)) { | |
tag = substr($0, RSTART, RLENGTH) | |
$0 = substr($0, RSTART + RLENGTH) | |
sub(/[.]*$/, "", tag) |