Skip to content

Commit

Permalink
Fixes parse_hashtag() in damus.c so hashtags no longer include non-al…
Browse files Browse the repository at this point in the history
…phanumeric characters such as punctuation marks.

Closes: damus-io#1518
  • Loading branch information
jonmarrs committed Sep 1, 2023
1 parent dd29e87 commit 8aa5f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion damus-c/damus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8aa5f84

Please sign in to comment.