1
0

fix(filter): do not match join operator

Partial fix for https://kolaente.dev/vikunja/vikunja/issues/2194
This commit is contained in:
kolaente
2024-03-12 21:28:31 +01:00
parent 0e2ad5dde6
commit e44897e0d4
2 changed files with 12 additions and 9 deletions

View File

@ -58,7 +58,7 @@ export const FILTER_JOIN_OPERATOR = [
export const FILTER_OPERATORS_REGEX = '(<|>|<=|>=|=|!=|in)'
export function getFilterFieldRegexPattern(field: string): RegExp {
return new RegExp('(' + field + '\\s*' + FILTER_OPERATORS_REGEX + '\\s*)([\'"]?)([^\'"&|()]+\\1?)?', 'ig')
return new RegExp('(' + field + '\\s*' + FILTER_OPERATORS_REGEX + '\\s*)([\'"]?)([^\'"&|()<]+\\1?)?', 'ig')
}
export function transformFilterStringForApi(