diff --git a/shroom/search.go b/shroom/search.go index 953c40e..59d128b 100644 --- a/shroom/search.go +++ b/shroom/search.go @@ -9,7 +9,7 @@ import ( // YieldHyphaNamesContainingString picks hyphae with have a string in their title, sorts and iterates over them. func YieldHyphaNamesContainingString(query string) <-chan string { - query = util.CanonicalName(query) + query = util.CanonicalName(strings.TrimSpace(query)) out := make(chan string) sorted := hyphae.PathographicSort(out) go func() {