stop reading hashtag at first comma - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 8a366cb14e7adc50d9cd4401d1aa924bb947bb3b | |
parent ab603cf320316225e577825fe64ca06f54704996 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Thu, 4 Feb 2021 19:50:07 +0100 | |
stop reading hashtag at first comma | |
Signed-off-by: Annna Robert-Houdin <[email protected]> | |
Diffstat: | |
M annna-start-services | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
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 { |