fix: searching labels that contain spaces or hyphens (#4932)

This commit is contained in:
Òscar Casajuana
2023-02-18 23:44:26 +01:00
committed by GitHub
parent 05e79d01db
commit 7350339ebc
+1 -1
View File
@@ -940,7 +940,7 @@ TODO: fix this when notifications get fixed
let filter_text = null;
let labels = null;
const m = /^labels:([\w,]*)(.*)$/.exec(this.filterText);
const m = /^labels:([\w,-\s]*)(.*)$/.exec(this.filterText);
if (m) {
filter_text = m[2].trim();
labels = m[1].split(',');