From 7bd6c8d1db7f0d33a02ecca6f53f44ec3b009bf1 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Tue, 19 Nov 2013 09:15:46 +0100 Subject: [PATCH] mpd: Add TODOs for remaining quote matching --- mopidy/frontends/mpd/protocol/music_db.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mopidy/frontends/mpd/protocol/music_db.py b/mopidy/frontends/mpd/protocol/music_db.py index b52969bf..e1d718c0 100644 --- a/mopidy/frontends/mpd/protocol/music_db.py +++ b/mopidy/frontends/mpd/protocol/music_db.py @@ -45,6 +45,7 @@ SEARCH_FIELDS = r""" | [Tt]rack """ +# TODO Would be nice to get ("?)...\1 working for the quotes here SEARCH_QUERY = r""" (?P (?: # Non-capturing group for repeating query pairs @@ -61,6 +62,7 @@ SEARCH_QUERY = r""" $ """ +# TODO Would be nice to get ("?)...\1 working for the quotes here SEARCH_PAIR_WITHOUT_GROUPS = r""" \b # Only begin matching at word bundaries "? # Optional quote around the field type @@ -74,6 +76,7 @@ SEARCH_PAIR_WITHOUT_GROUPS = r""" SEARCH_PAIR_WITHOUT_GROUPS_RE = re.compile( SEARCH_PAIR_WITHOUT_GROUPS, flags=(re.UNICODE | re.VERBOSE)) +# TODO Would be nice to get ("?)...\1 working for the quotes here SEARCH_PAIR_WITH_GROUPS = r""" \b # Only begin matching at word bundaries "? # Optional quote around the field type