From 57c05973ed8e9648bcd95dcf0a43f64d4fe697d1 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 29 May 2019 18:33:16 -0700 Subject: yet another pubmed weird DOI corner case --- python/fatcat_tools/importers/pubmed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/fatcat_tools/importers/pubmed.py b/python/fatcat_tools/importers/pubmed.py index 0fc10e84..e8405dd4 100644 --- a/python/fatcat_tools/importers/pubmed.py +++ b/python/fatcat_tools/importers/pubmed.py @@ -380,7 +380,7 @@ class PubmedImporter(EntityImporter): doi = doi.string.lower().strip() if doi.startswith('doi:'): doi = doi[4:] - if not (doi.startswith('10.') and '/' in doi and doi.split('/')[1]): + if not (doi.startswith('10.') and '/' in doi and doi.split('/')[1]) and len(doi.split()) == 1: sys.stderr.write("BOGUS DOI: {}\n".format(doi)) doi = None -- cgit v1.2.3