diff options
author | zsloan | 2021-02-10 21:10:58 +0000 |
---|---|---|
committer | zsloan | 2021-02-10 21:10:58 +0000 |
commit | 826fac9ddd5def93adeaf88360be94a786b77f97 (patch) | |
tree | fb342124d0e516760072fb5bb6fe5cb84c00db82 | |
parent | c0fc5c2fe7afd5af6697def310220e3a1a72ae71 (diff) | |
download | genenetwork2-826fac9ddd5def93adeaf88360be94a786b77f97.tar.gz |
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)
-rw-r--r-- | wqflask/wqflask/parser.py | 3 |
1 files changed, 1 insertions, 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 = [] |