diff options
author | zsloan | 2024-08-26 21:14:15 +0000 |
---|---|---|
committer | zsloan | 2024-08-26 21:14:15 +0000 |
commit | dfae1e447b239eba4bd07d8d5b43ab68cfafe7b2 (patch) | |
tree | 9574de8ae5422fdb7dae9d1408bedabf97eb06dd /gn2/wqflask | |
parent | a5148f385230f735f6d4bc80bc55fed2044a8570 (diff) | |
download | genenetwork2-dfae1e447b239eba4bd07d8d5b43ab68cfafe7b2.tar.gz |
Allow '@' and '.' characters in searches
This is mainly so e-mail searches work
Diffstat (limited to 'gn2/wqflask')
-rw-r--r-- | gn2/wqflask/parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn2/wqflask/parser.py b/gn2/wqflask/parser.py index ddf48d90..fdd5d164 100644 --- a/gn2/wqflask/parser.py +++ b/gn2/wqflask/parser.py @@ -30,7 +30,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()] |