Skip to content

Commit

Permalink
Fix emoji hashtags
Browse files Browse the repository at this point in the history
  • Loading branch information
dsaxton committed Dec 19, 2024
1 parent 659ce45 commit b85e771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/notedeck_columns/src/post.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b85e771

Please sign in to comment.