mirror of
https://github.com/beetbox/beets.git
synced 2026-02-24 00:02:20 +01:00
AURA: Allow '-' character in filter attribute
This commit is contained in:
parent
9b9ff46e7d
commit
a54ee43d57
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ class AURADocument:
|
|||
"""Translate filters from request arguments to a beets Query."""
|
||||
# The format of each filter key in the request parameter is:
|
||||
# filter[<attribute>]. This regex extracts <attribute>.
|
||||
pattern = re.compile(r"filter\[(?P<attribute>\w+)\]")
|
||||
pattern = re.compile(r"filter\[(?P<attribute>[a-zA-Z0-9_-]+)\]")
|
||||
queries = []
|
||||
for key, value in request.args.items():
|
||||
match = pattern.match(key)
|
||||
|
|
|
|||
Loading…
Reference in a new issue