Remove regex

This commit is contained in:
Mel O'Hagan 2022-06-24 21:37:58 +01:00
parent ea94983e69
commit 988bc12dea
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ class QueryBuilder {
build(this.query.oneOf, (key, value) => { build(this.query.oneOf, (key, value) => {
if (!Array.isArray(value)) { if (!Array.isArray(value)) {
if (typeof value === "string") { if (typeof value === "string") {
value = value.replace(/(\s)*,(\s)*/g, ",").split(",") value = value.split(",")
} else { } else {
return "" return ""
} }