From dfae1e447b239eba4bd07d8d5b43ab68cfafe7b2 Mon Sep 17 00:00:00 2001 From: zsloan Date: Mon, 26 Aug 2024 21:14:15 +0000 Subject: Allow '@' and '.' characters in searches This is mainly so e-mail searches work --- gn2/wqflask/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn2/wqflask') 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()] -- cgit v1.2.3