hcl/ast: filter should compare value string

This commit is contained in:
Mitchell Hashimoto 2015-11-08 16:25:40 -08:00
parent 407a4ff94c
commit eabb04dcd5

View File

@ -61,7 +61,7 @@ func (o *ObjectList) Filter(keys ...string) *ObjectList {
match := true
for i, key := range item.Keys[:len(keys)] {
key := key.Token.Text
key := key.Token.Value().(string)
if key != keys[i] && !strings.EqualFold(key, keys[i]) {
match = false
break