diff options
author | zsloan | 2022-02-24 21:32:42 +0000 |
---|---|---|
committer | zsloan | 2022-02-24 16:02:06 -0600 |
commit | 494e91a2dd04cdb6b8cd20fc1709d847ac2c012a (patch) | |
tree | 6f1fc13057f039ce8447bdcd2cf7248a2fc9f166 /wqflask | |
parent | 510829d9ed7ff47d52989d79e235d86205bc5e2e (diff) | |
download | genenetwork2-494e91a2dd04cdb6b8cd20fc1709d847ac2c012a.tar.gz |
Change parser.py to also detect hyphen in search terms
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/parser.py b/wqflask/wqflask/parser.py index bd1c4407..7a808ac9 100644 --- a/wqflask/wqflask/parser.py +++ b/wqflask/wqflask/parser.py @@ -33,7 +33,7 @@ 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()] |