diff --git a/damus/Views/SearchResultsView.swift b/damus/Views/SearchResultsView.swift index 321851c7..8f3548c7 100644 --- a/damus/Views/SearchResultsView.swift +++ b/damus/Views/SearchResultsView.swift @@ -96,7 +96,7 @@ func search_changed(profiles: Profiles, _ new: String) -> Search? { } if new.first! == "#" { - let ht = String(new.dropFirst()) + let ht = String(new.dropFirst().filter{$0 != " "}) return .hashtag(ht) }