Skip to content

Commit

Permalink
always escape targets with single quotation marks
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossless committed Oct 10, 2023
1 parent 580ccaa commit b03fd10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ func slice2String(slice []string) string {
buffer.WriteString(slice[0])
return buffer.String()
}
buffer.WriteString(`{`)
buffer.WriteString(`{'`)
for i, item := range slice {
buffer.WriteString(item)
if i < len(slice)-1 {
buffer.WriteString(",")
buffer.WriteString("','")
}
}
buffer.WriteString(`}`)
buffer.WriteString(`'}`)
return buffer.String()
}

Expand Down

0 comments on commit b03fd10

Please sign in to comment.