Skip to content

Commit 807e6f5

Browse files
committed
#190-FetchInteger: Fix
1 parent 819116b commit 807e6f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vals.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,10 @@ func (r *Runtime) prepare() (*expansion.ExpandRegexMatch, error) {
410410
for i, k := range keys {
411411
newobj := map[string]interface{}{}
412412
switch t := obj[k].(type) {
413+
case int:
414+
return fmt.Sprint(t), nil
415+
case bool:
416+
return fmt.Sprint(t), nil
413417
case string:
414418
if i != len(keys)-1 {
415419
return "", fmt.Errorf("unexpected type of value for key at %d=%s in %v: expected map[string]interface{}, got %v(%T)", i, k, keys, t, t)

0 commit comments

Comments
 (0)