aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-09-10 18:06:12 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-09-10 18:06:23 -0700
commit5ec28e7657af82c3260fcf67db4e7b2ea4ba6a36 (patch)
tree6015f65d5d35a10144716e37217cc1f26164d744 /python/fatcat
parent5aa20868e508de021dc6112e4fe0a58ad5d7dc0a (diff)
downloadfatcat-5ec28e7657af82c3260fcf67db4e7b2ea4ba6a36.tar.gz
fatcat-5ec28e7657af82c3260fcf67db4e7b2ea4ba6a36.zip
fix python import of ORCIDs ending 'X'
Diffstat (limited to 'python/fatcat')
-rw-r--r--python/fatcat/importer_common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat/importer_common.py b/python/fatcat/importer_common.py
index 0b02d175..74a57ac1 100644
--- a/python/fatcat/importer_common.py
+++ b/python/fatcat/importer_common.py
@@ -23,7 +23,7 @@ class FatcatImporter:
self._orcid_id_map = dict()
self._doi_id_map = dict()
self._issn_issnl_map = None
- self._orcid_regex = re.compile("^\\d{4}-\\d{4}-\\d{4}-\\d{4}$")
+ self._orcid_regex = re.compile("^\\d{4}-\\d{4}-\\d{4}-\\d{3}[\\dX]$")
if issn_map_file:
self.read_issn_map_file(issn_map_file)