Commit 1cae5079 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Simplify regex for sort field matching.

parent b2599970
......@@ -97,7 +97,7 @@ class Sorter(object):
for field in fields:
parsed_field = re.match( \
r'((?P<order>asc(ending)?|desc(ending)?):)?(?P<field>\S+)', \
r'(?P<order>(asc|desc)(ending)?:)?(?P<field>\S+)', \
field)
if not parsed_field:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment