mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-12-12 05:20:26 +00:00
Merge pull request #120 from DanInSpace104/patch-3
Trim whitespaces when searching hypha
This commit is contained in:
commit
7d2457bd3f
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user