Skip to content

Commit

Permalink
Fix: Cannot use splitArgs and splitLines in for-loops (#1823)
Browse files Browse the repository at this point in the history
* Update variables.go

Probably solves #1822

* add type casting

* reorder to look better

* add suport for []int functions (until, untilStep)
  • Loading branch information
stawii authored Sep 20, 2024
1 parent 7e6577e commit cb07189
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,10 @@ func itemsFromFor(
} else {
values = asAnySlice(strings.Fields(value))
}
case []string:
values = asAnySlice(value)
case []int:
values = asAnySlice(value)
case []any:
values = value
case map[string]any:
Expand Down

0 comments on commit cb07189

Please sign in to comment.