Fix rest filter parsing (#13414)

Should now properly match logical expressions like and(...), or(...)
instead of and/or without parenthesis, this should fix the issue with
fields that start with or/and
This commit is contained in:
Weiko
2025-07-24 16:06:06 +02:00
committed by GitHub
parent 5c15a5954b
commit 7ee250efe7

View File

@ -21,7 +21,7 @@ export const parseFilter = (
): Record<string, FieldValue> => {
const result = {};
const match = filterQuery.match(
`^(${Object.values(Conjunctions).join('|')})((.+))$`,
`^(${Object.values(Conjunctions).join('|')})\\((.+)\\)$`,
);
if (match) {