fix(quick actions): quote label when it contains spaces (#1013)

fix(frontend): quote label search with spaces
This commit is contained in:
kolaente 2025-06-25 15:46:59 +02:00 committed by GitHub
parent bc6b830b88
commit 786f3ea321
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -484,7 +484,11 @@ async function doAction(type: ACTION_TYPE, item: DoAction) {
searchInput.value?.focus()
break
case ACTION_TYPE.LABELS:
query.value = '*' + item.title
if (/\s/.test(item.title)) {
query.value = '*"' + item.title + '"'
} else {
query.value = '*' + item.title
}
searchInput.value?.focus()
searchTasks()
break