mpd: Add TODOs for remaining quote matching

This commit is contained in:
Stein Magnus Jodal 2013-11-19 09:15:46 +01:00
parent dfa2d14c55
commit 7bd6c8d1db

View File

@ -45,6 +45,7 @@ SEARCH_FIELDS = r"""
| [Tt]rack | [Tt]rack
""" """
# TODO Would be nice to get ("?)...\1 working for the quotes here
SEARCH_QUERY = r""" SEARCH_QUERY = r"""
(?P<mpd_query> (?P<mpd_query>
(?: # Non-capturing group for repeating query pairs (?: # 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""" SEARCH_PAIR_WITHOUT_GROUPS = r"""
\b # Only begin matching at word bundaries \b # Only begin matching at word bundaries
"? # Optional quote around the field type "? # 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_RE = re.compile(
SEARCH_PAIR_WITHOUT_GROUPS, flags=(re.UNICODE | re.VERBOSE)) 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""" SEARCH_PAIR_WITH_GROUPS = r"""
\b # Only begin matching at word bundaries \b # Only begin matching at word bundaries
"? # Optional quote around the field type "? # Optional quote around the field type