Commit 51e7b8d8 authored by Antoine Millet's avatar Antoine Millet
Browse files

Changed limit separator from # to ^.

parent ab7d921e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -87,9 +87,9 @@ class TqlQuery(object):

    RE_COND = re.compile(r'^(?P<name>[a-z-A-Z0-9_?*-]+)'
                         r'((?P<operator>[!<>~:=]{1,3})'
                         r'(?P<value>[^&$#]+?))?$')
                         r'(?P<value>[^&$\^]+?))?$')
    RE_TAG = re.compile(r'^(?P<name>[a-z-A-Z0-9_-]+|[*])')
    RE_SEPARATOR = re.compile(r'(&|\$|#)')
    RE_SEPARATOR = re.compile(r'(&|\$|\^)')

    def __init__(self, query):
        self._conditions = []
@@ -164,7 +164,7 @@ class TqlQuery(object):
                    raise TqlParsingError('Error while parsing, invalid tag '
                                          'name %s' % repr(tok))

            elif sep == '#':
            elif sep == '^':
                if tok.isdigit():
                    lim = TqlLimit(int(tok))
                    self._conditions.append(lim)