1
0
Fork 0
mirror of synced 2024-10-02 18:16:29 +13:00

Remove regex

This commit is contained in:
Mel O'Hagan 2022-06-24 21:37:58 +01:00
parent ea94983e69
commit 988bc12dea

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 ""
} }