1
0
mirror of git://jb55.com/damus synced 2024-10-06 11:43:21 +00:00

Remove spaces from hashtag searches

Changelog-Changed: Remove spaces from hashtag searches
Closes: #773
Fixes: #741
This commit is contained in:
gladiusKatana 2023-03-12 17:58:32 -04:00 committed by William Casarin
parent 04fa4edad8
commit 8059408d5f

View File

@ -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)
}