From 7350339ebc4903495661c988515d22e8a36d9c4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=92scar=20Casajuana?= Date: Sat, 18 Feb 2023 23:44:26 +0100 Subject: [PATCH] fix: searching labels that contain spaces or hyphens (#4932) --- web/src/transmission.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/transmission.js b/web/src/transmission.js index 174af3fc1..034091d62 100644 --- a/web/src/transmission.js +++ b/web/src/transmission.js @@ -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(',');