From dd66ca51f96c954504c43a134e63a203b2793d20 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Mon, 4 Jan 2016 22:08:27 -0800 Subject: [PATCH] Detail on example (#1794) --- beets/dbcore/queryparse.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beets/dbcore/queryparse.py b/beets/dbcore/queryparse.py index 99218d625..bc9cc77ec 100644 --- a/beets/dbcore/queryparse.py +++ b/beets/dbcore/queryparse.py @@ -77,7 +77,8 @@ def parse_query_part(part, query_classes={}, prefixes={}, For example, assuming the `:` prefix is used for `RegexpQuery`: - `'stapler'` -> `(None, 'stapler', SubstringQuery, False)` - `'color:red'` -> `('color', 'red', SubstringQuery, False)` - - `':^Quiet'` -> `(None, '^Quiet', RegexpQuery, False)` + - `':^Quiet'` -> `(None, '^Quiet', RegexpQuery, False)`, because + the `^` follows the `:` - `'color::b..e'` -> `('color', 'b..e', RegexpQuery, False)` - `'-color:red'` -> `('color', 'red', SubstringQuery, True)` """