From b85e771096af4ed5621377a030294c680df43dd8 Mon Sep 17 00:00:00 2001 From: Daniel Saxton Date: Wed, 18 Dec 2024 19:02:34 -0600 Subject: [PATCH] Fix emoji hashtags --- crates/notedeck_columns/src/post.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/notedeck_columns/src/post.rs b/crates/notedeck_columns/src/post.rs index e99cc21..8bb624c 100644 --- a/crates/notedeck_columns/src/post.rs +++ b/crates/notedeck_columns/src/post.rs @@ -132,7 +132,7 @@ impl NewPost { for word in content.split_whitespace() { if word.starts_with('#') && word.len() > 1 { let tag = word[1..] - .trim_end_matches(|c: char| !c.is_alphanumeric()) + .trim_end_matches(|c: char| c.is_ascii_punctuation()) .to_lowercase(); if !tag.is_empty() { hashtags.insert(tag);