Fix item filtering

This commit is contained in:
Alexander Zobnin
2021-05-24 11:20:14 +03:00
parent 37573e0152
commit 94b5c88366
3 changed files with 19 additions and 7 deletions

View File

@@ -6,7 +6,7 @@ import (
"strings"
)
func (item *Item) ExpandItem() string {
func (item *Item) ExpandItemName() string {
name := item.Name
key := item.Key
@@ -25,6 +25,13 @@ func (item *Item) ExpandItem() string {
return name
}
func expandItems(items []Item) []Item {
for i := 0; i < len(items); i++ {
items[i].Name = items[i].ExpandItemName()
}
return items
}
func splitKeyParams(paramStr string) []string {
paramRunes := []rune(paramStr)
params := []string{}