From 1e1523abb5fd29c7cf430670f4de12415b50adb4 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Sun, 17 Nov 2013 15:45:31 +0100 Subject: [PATCH] mpd: Match just ' ', not any space char --- mopidy/frontends/mpd/translator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mopidy/frontends/mpd/translator.py b/mopidy/frontends/mpd/translator.py index bc286fae..95b4a741 100644 --- a/mopidy/frontends/mpd/translator.py +++ b/mopidy/frontends/mpd/translator.py @@ -221,7 +221,7 @@ MPD_SEARCH_QUERY_RE = re.compile(r""" | [Aa]ny ) "? # End of optional quote around the field type - \s # A single space + \ # A single space "[^"]+" # Matching a quoted search string """, flags=(re.UNICODE | re.VERBOSE)) @@ -244,7 +244,7 @@ MPD_SEARCH_QUERY_PART_RE = re.compile(r""" | [Aa]ny )) "? # End of optional quote around the field type - \s # A single space + \ # A single space "(?P[^"]+)" # Capturing a quoted search string """, flags=(re.UNICODE | re.VERBOSE))