summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-29 18:33:16 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-29 18:33:20 -0700
commit57c05973ed8e9648bcd95dcf0a43f64d4fe697d1 (patch)
treed5564aaa07145cd17c067d4c98ae4a0b5d703c5d
parent7c5ad2cb877c193d6fc6b638d220f15d3c921973 (diff)
downloadfatcat-57c05973ed8e9648bcd95dcf0a43f64d4fe697d1.tar.gz
fatcat-57c05973ed8e9648bcd95dcf0a43f64d4fe697d1.zip
yet another pubmed weird DOI corner case
-rw-r--r--python/fatcat_tools/importers/pubmed.py2
1 files changed, 1 insertions, 1 deletions
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