1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-11-25 19:44:52 +00:00

Trim whitespaces when searching hypha

This commit is contained in:
Dan Konshin
2021-12-15 14:19:02 +05:00
committed by GitHub
parent bc77619105
commit 49f15952a1

View File

@@ -9,7 +9,7 @@ import (
// YieldHyphaNamesContainingString picks hyphae with have a string in their title, sorts and iterates over them. // YieldHyphaNamesContainingString picks hyphae with have a string in their title, sorts and iterates over them.
func YieldHyphaNamesContainingString(query string) <-chan string { func YieldHyphaNamesContainingString(query string) <-chan string {
query = util.CanonicalName(query) query = util.CanonicalName(strings.TrimSpace(query))
out := make(chan string) out := make(chan string)
sorted := hyphae.PathographicSort(out) sorted := hyphae.PathographicSort(out)
go func() { go func() {