aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask
diff options
context:
space:
mode:
authorzsloan2024-08-26 21:14:15 +0000
committerzsloan2024-08-26 21:14:15 +0000
commitdfae1e447b239eba4bd07d8d5b43ab68cfafe7b2 (patch)
tree9574de8ae5422fdb7dae9d1408bedabf97eb06dd /gn2/wqflask
parenta5148f385230f735f6d4bc80bc55fed2044a8570 (diff)
downloadgenenetwork2-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.py2
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()]