From 826fac9ddd5def93adeaf88360be94a786b77f97 Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 10 Feb 2021 21:10:58 +0000 Subject: Changed parser.py to account for the ? wildcard in the same way as GN1, but I suspect GN1 isn't actually doing this correctly (might have to do with switch to MariaDB) --- wqflask/wqflask/parser.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wqflask/wqflask/parser.py b/wqflask/wqflask/parser.py index 76fae54b..dcd328c9 100644 --- a/wqflask/wqflask/parser.py +++ b/wqflask/wqflask/parser.py @@ -32,11 +32,10 @@ def parse(pstring): pstring = re.split(r"""(?:(\w+\s*=\s*[\('"\[][^)'"]*[\)\]'"]) | # LRS=(1 2 3), cisLRS=[4 5 6], etc (\w+\s*[=:\>\<][\w\*]+) | # wiki=bar, GO:foobar, etc (".*?") | ('.*?') | # terms in quotes, i.e. "brain weight" - ([\w\*]+)) # shh, brain, etc """, pstring, + ([\w\*\?]+)) # shh, brain, etc """, pstring, flags=re.VERBOSE) pstring = [item.strip() for item in pstring if item and item.strip()] - logger.debug("pstring:", pstring) items = [] -- cgit v1.2.3