From 49f15952a1e33d45eae99db1ab645f21757ee1eb Mon Sep 17 00:00:00 2001 From: Dan Konshin <39777812+DanInSpace104@users.noreply.github.com> Date: Wed, 15 Dec 2021 14:19:02 +0500 Subject: [PATCH] Trim whitespaces when searching hypha --- shroom/search.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {