Fix expanding item name with unicode params, fixes #1269
This commit is contained in:
@@ -14,8 +14,7 @@ func (item *Item) ExpandItemName() string {
|
||||
return name
|
||||
}
|
||||
|
||||
keyRunes := []rune(item.Key)
|
||||
keyParamsStr := string(keyRunes[strings.Index(key, "[")+1 : strings.LastIndex(key, "]")])
|
||||
keyParamsStr := key[strings.Index(key, "[")+1 : strings.LastIndex(key, "]")]
|
||||
keyParams := splitKeyParams(keyParamsStr)
|
||||
|
||||
for i := len(keyParams); i >= 1; i-- {
|
||||
|
||||
Reference in New Issue
Block a user