Skip to content

Commit 7d3f8cf

Browse files
committed
split strings only in case of correct method
1 parent 6b378f3 commit 7d3f8cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

filter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ func (f *Filter) parseValue(valueType string, value string, delimiter string) er
169169

170170
var list []string
171171

172-
if strings.Contains(value, delimiter) {
172+
if strings.Contains(value, delimiter) && (f.Method == IN || f.Method == NIN) {
173173
list = strings.Split(value, delimiter)
174174
} else {
175175
list = append(list, value)

0 commit comments

Comments
 (0)