aboutsummaryrefslogtreecommitdiff
path: root/gn2
diff options
context:
space:
mode:
authorzsloan2024-08-26 21:14:15 +0000
committerAlexander_Kabui2024-08-28 15:02:46 +0300
commitd4cf281409a5188ef286bad67d3ec80affd6ea14 (patch)
tree6b06e74bbfec80e785a70388ba2fb8e958e93d71 /gn2
parenteafb171dad7ab31d6bfdfb0577ecf8f1da25a64f (diff)
downloadgenenetwork2-d4cf281409a5188ef286bad67d3ec80affd6ea14.tar.gz
Allow '@' and '.' characters in searches
This is mainly so e-mail searches work
Diffstat (limited to 'gn2')
-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()]