mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
fix: searching labels that contain spaces or hyphens (#4932)
This commit is contained in:
@@ -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(',');
|
||||
|
||||
Reference in New Issue
Block a user