stop reading hashtag at first apostrophe - 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 ba5d536cf6f9894e2f83d59923c21aaa62de83c5
(DIR) parent 8a366cb14e7adc50d9cd4401d1aa924bb947bb3b
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Thu, 4 Feb 2021 19:56:07 +0100
stop reading hashtag at first apostrophe
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
@@ -692,7 +692,7 @@ annna_common() {
printf '%s' "$text" | awk -v taglimit="$printnhashtags" '
$0 ~ /#/ && $0 !~ /#nospoil/ {
for (i = 1; i <= NF; i++)
- if (match($i, /#[^ ,?!$]*/))
+ if (match($i, /#[^ '"'"',?!$]*/))
tags[j++] = substr($i, RSTART, RLENGTH)
}
END {