diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-08-16 09:42:55 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-08-16 09:42:55 -0700 |
commit | b83347388d17dfd58c9f3d123d3d96d050ca6e9b (patch) | |
tree | b07cfd936e1e405e88e5003fcf022e778161dd5c /python/fatcat_client/models/creator_entity.py | |
parent | 68e847aadc728d63057be5b8d547c851b02a0008 (diff) | |
download | fatcat-b83347388d17dfd58c9f3d123d3d96d050ca6e9b.tar.gz fatcat-b83347388d17dfd58c9f3d123d3d96d050ca6e9b.zip |
ORCIDs can end in X character
Diffstat (limited to 'python/fatcat_client/models/creator_entity.py')
-rw-r--r-- | python/fatcat_client/models/creator_entity.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat_client/models/creator_entity.py b/python/fatcat_client/models/creator_entity.py index a9e459ee..de096281 100644 --- a/python/fatcat_client/models/creator_entity.py +++ b/python/fatcat_client/models/creator_entity.py @@ -139,8 +139,8 @@ class CreatorEntity(object): raise ValueError("Invalid value for `orcid`, length must be less than or equal to `19`") # noqa: E501 if orcid is not None and len(orcid) < 19: raise ValueError("Invalid value for `orcid`, length must be greater than or equal to `19`") # noqa: E501 - if orcid is not None and not re.search('\\d{4}-\\d{4}-\\d{4}-\\d{4}', orcid): # noqa: E501 - raise ValueError("Invalid value for `orcid`, must be a follow pattern or equal to `/\\d{4}-\\d{4}-\\d{4}-\\d{4}/`") # noqa: E501 + if orcid is not None and not re.search('\\d{4}-\\d{4}-\\d{4}-\\d{3}[\\dX]', orcid): # noqa: E501 + raise ValueError("Invalid value for `orcid`, must be a follow pattern or equal to `/\\d{4}-\\d{4}-\\d{4}-\\d{3}[\\dX]/`") # noqa: E501 self._orcid = orcid |