fix(quick actions): quote label when it contains spaces (#1013)
fix(frontend): quote label search with spaces
This commit is contained in:
parent
bc6b830b88
commit
786f3ea321
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue