Commit 93b26d13 authored by Antoine Millet's avatar Antoine Millet
Browse files

Fixed bug with units regex in tql parser

parent a92db28f
Loading
Loading
Loading
Loading
+1 −1
Changes for cloudcontrol/common/tql/parser/parser.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ UNITS = {'k': 10 ** 3,


RE_UNIT = re.compile(r'(?P<num>[-+]?[0-9]+(\.[0-9]+)?)[ ]?'
                      '(?P<unit>%s)' % '|'.join(UNITS), re.IGNORECASE)
                      '(?P<unit>%s$)' % '|'.join(UNITS), re.IGNORECASE)

class TqlLexer(object):