aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/parser.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/wqflask/wqflask/parser.py b/wqflask/wqflask/parser.py
index a94a8842..676efa1e 100644
--- a/wqflask/wqflask/parser.py
+++ b/wqflask/wqflask/parser.py
@@ -35,8 +35,8 @@ def parse(pstring):
items = []
- separators = [re.escape(x) for x in (":", "=", "<", ">")]
- separators = '([%s])' % ("".join(separators))
+ separators = [re.escape(x) for x in ("<=", ">=", ":", "=", "<", ">")]
+ separators = '(%s)' % ("|".join(separators))
print("separators:", separators)
@@ -69,6 +69,9 @@ if __name__ == '__main__':
parse("foo=[3 2 1]")
parse("WIKI=ho*")
parse("LRS>9")
+ parse("LRS>=18")
+ parse("foo <= 2")
+ parse("cisLRS<20")
parse("foo=[3 2 1)")
parse("foo=(3 2 1)")
parse("shh")