Add parenthesis around hastag support, as suggested by adc. - annna - Annna the… | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 1663a8563cca954e169e74f94d5ecda39c8b48dc | |
parent 6b492185fa1670b4208bad4530428eba11d2ce95 | |
Author: Annna Robert-Houdin <[email protected]> | |
Date: Fri, 12 Feb 2021 18:34:58 +0100 | |
Add parenthesis around hastag support, as suggested by adc. | |
Thanks adc! | |
Diffstat: | |
M annna-start-services | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/annna-start-services b/annna-start-services | |
@@ -707,7 +707,7 @@ annna_common() { | |
else | |
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) |