Skip to content

Commit

Permalink
bugfix: fix flag values contains spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
xcaspar committed Dec 4, 2019
1 parent 1cbf25a commit fdbbba2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ func ConvertExpMatchersToString(expModel *ExpModel, createExcludeKeyFunc func()
continue
}
if strings.Contains(value, " ") {
value = strings.ReplaceAll(value, " ", "-")
value = strings.ReplaceAll(value, " ", "@@##")
}
matchers = fmt.Sprintf(`%s --%s=%s`, matchers, name, value)
}
Expand All @@ -328,7 +328,7 @@ func ConvertCommandsToExpModel(action, target, rules string) *ExpModel {
continue
}
key := keyAndValue[0][2:]
model.ActionFlags[key] = keyAndValue[1]
model.ActionFlags[key] = strings.ReplaceAll(keyAndValue[1], "@@##", " ")
}
return model
}
Expand Down

0 comments on commit fdbbba2

Please sign in to comment.