diff --git a/jgi-query.py b/jgi-query.py index 99c895c..93a040d 100755 --- a/jgi-query.py +++ b/jgi-query.py @@ -950,7 +950,7 @@ def download_list(url_list, timeout=120, retries=3): sys.exit("No organism specified. Exiting now.") else: sys.exit("No organism specified. Exiting now.") -org_regex = re.compile(r'\.jgi.+\.(?:gov|org).+\/(.+)\/(?!\/)') +org_regex = re.compile(r'\.jgi.+\.(?:gov|org).*\/(.+)\/(?!\/)') try: # see if it's in address form # organism = re.search("\.jgi.+\.(?:gov|org)/(.+)/", org_input).group(1) organism = org_regex.search(org_input).group(1)