From 8aa5f84eacb393a85eca001df0375d93e27c5906 Mon Sep 17 00:00:00 2001 From: Jon Marrs Date: Tue, 29 Aug 2023 21:08:46 -0700 Subject: [PATCH] Fixes parse_hashtag() in damus.c so hashtags no longer include non-alphanumeric characters such as punctuation marks. Closes: https://github.com/damus-io/damus/issues/1518 --- damus-c/damus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/damus-c/damus.c b/damus-c/damus.c index e9de325a51..8c4705dfbe 100644 --- a/damus-c/damus.c +++ b/damus-c/damus.c @@ -72,7 +72,7 @@ static int parse_hashtag(struct cursor *cur, struct note_block *block) { return 0; } - consume_until_boundary(cur); + consume_until_non_alphanumeric(cur, 1); block->type = BLOCK_HASHTAG; block->block.str.start = (const char*)(start + 1);