mpd: Match just ' ', not any space char

This commit is contained in:
Stein Magnus Jodal 2013-11-17 15:45:31 +01:00
parent 200adc71a4
commit 1e1523abb5

View File

@ -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<what>[^"]+)" # Capturing a quoted search string
""", flags=(re.UNICODE | re.VERBOSE))