damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 8059408d5fc784b2ea6cf227d4642d79ca63f3f0
parent 04fa4edad8f4cf32b8f0f38f04ca2f1faf6673dc
Author: gladiusKatana <garthsnyder@protonmail.com>
Date:   Sun, 12 Mar 2023 17:58:32 -0400

Remove spaces from hashtag searches

Changelog-Changed: Remove spaces from hashtag searches
Closes: #773
Fixes: #741

Diffstat:
Mdamus/Views/SearchResultsView.swift | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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) }