diff --git a/internal/pkg/node/methods.go b/internal/pkg/node/methods.go index b2179a1d..bc5de819 100644 --- a/internal/pkg/node/methods.go +++ b/internal/pkg/node/methods.go @@ -14,7 +14,7 @@ func FilterByName(set []NodeInfo, searchList []string) []NodeInfo { if len(searchList) > 0 { for _, search := range searchList { for _, entry := range set { - b, _ := regexp.MatchString(search, entry.Id.Get()) + b, _ := regexp.MatchString("^"+search+"$", entry.Id.Get()) if b { ret = append(ret, entry) }