mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-03-22 21:15:18 -05:00
[PR #1647] [MERGED] fix(filters): support project filter in parentheses #3569
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/go-vikunja/vikunja/pull/1647
Author: @kolaente
Created: 10/13/2025
Status: ✅ Merged
Merged: 10/13/2025
Merged by: @kolaente
Base:
main← Head:fix/project-filter-parentheses📝 Commits (1)
a790d00fix(filters): support project filter in parentheses📊 Changes
3 files changed (+48 additions, -1 deletions)
View changed files
📝
frontend/src/helpers/filters.test.ts(+20 -0)📝
frontend/src/helpers/filters.ts(+1 -1)📝
pkg/models/task_collection_filter_test.go(+27 -0)📄 Description
The filter regex pattern was not matching values inside parentheses correctly. The lookahead pattern only allowed
&&,||, or end-of-string after filter values, but when filters are wrapped in parentheses like( project = Filtertest ), the closing)appears after the value.Fixed by adding
\)to the lookahead pattern so it correctly handles closing parentheses. This allows the project filter (and other filters) to work properly when nested in parentheses.Fixes #1645
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.