Remove spaces from hashtag searches
Changelog-Changed: Remove spaces from hashtag searches Closes: #773 Fixes: #741
This commit is contained in:
committed by
William Casarin
parent
04fa4edad8
commit
8059408d5f
@@ -96,7 +96,7 @@ func search_changed(profiles: Profiles, _ new: String) -> Search? {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if new.first! == "#" {
|
if new.first! == "#" {
|
||||||
let ht = String(new.dropFirst())
|
let ht = String(new.dropFirst().filter{$0 != " "})
|
||||||
return .hashtag(ht)
|
return .hashtag(ht)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user