From f1188a8b81610d8aa647b33ccfcd34c1cad2dfd2 Mon Sep 17 00:00:00 2001 From: Mel O'Hagan Date: Fri, 24 Jun 2022 21:37:58 +0100 Subject: [PATCH] Remove regex --- packages/server/src/api/controllers/row/internalSearch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/api/controllers/row/internalSearch.js b/packages/server/src/api/controllers/row/internalSearch.js index 23cbdb4bec..731b726654 100644 --- a/packages/server/src/api/controllers/row/internalSearch.js +++ b/packages/server/src/api/controllers/row/internalSearch.js @@ -230,7 +230,7 @@ class QueryBuilder { build(this.query.oneOf, (key, value) => { if (!Array.isArray(value)) { if (typeof value === "string") { - value = value.replace(/(\s)*,(\s)*/g, ",").split(",") + value = value.split(",") } else { return "" }