Skip to content

Commit

Permalink
Honor ignoreblanks for SetFlex in string slices
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Dec 22, 2021
1 parent 70d4a41 commit 45918f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/engine/object.go
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,9 @@ func (o *Object) SetFlex(flexinit ...interface{}) {
continue
}
for _, s := range *v {
if ignoreblanks && s == "" {
continue
}
data = append(data, AttributeValueString(s))
}
case *string:
Expand Down

0 comments on commit 45918f4

Please sign in to comment.