From 8059408d5fc784b2ea6cf227d4642d79ca63f3f0 Mon Sep 17 00:00:00 2001 From: gladiusKatana Date: Sun, 12 Mar 2023 17:58:32 -0400 Subject: [PATCH] Remove spaces from hashtag searches Changelog-Changed: Remove spaces from hashtag searches Closes: #773 Fixes: #741 --- damus/Views/SearchResultsView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }