aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/importers/jalc.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-22 09:58:41 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-22 09:58:50 -0700
commit5927bee04145a8b398172a17582ed312206f7914 (patch)
treead396e84f6cc3de0019b3c6c77268c109388293e /python/fatcat_tools/importers/jalc.py
parentf00c0a6c8217fe9a3872c3744cfdfa9a91285ab6 (diff)
downloadfatcat-5927bee04145a8b398172a17582ed312206f7914.tar.gz
fatcat-5927bee04145a8b398172a17582ed312206f7914.zip
better JALC and arxiv DOI checks
Diffstat (limited to 'python/fatcat_tools/importers/jalc.py')
-rw-r--r--python/fatcat_tools/importers/jalc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/jalc.py b/python/fatcat_tools/importers/jalc.py
index 8dd4f3e5..fa3c108d 100644
--- a/python/fatcat_tools/importers/jalc.py
+++ b/python/fatcat_tools/importers/jalc.py
@@ -98,7 +98,7 @@ class JalcImporter(EntityImporter):
doi = doi.replace('http://doi.org/', '')
elif doi.startswith('https://doi.org/'):
doi = doi.replace('https://doi.org/', '')
- if not doi.startswith('10.'):
+ if not (doi.startswith('10.') and '/' in doi):
sys.stderr.write("bogus JALC DOI: {}\n".format(doi))
doi = None
if not doi: