-
Notifications
You must be signed in to change notification settings - Fork 2
validate ORCID iDs #122
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
For future ATMODAT versions, we could consider checking if users correctly specified their ORCIDs, especially in the property creator_id.
This is how it should work.
import re
pattern = re.compile(r"^(https://orcid.org/[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{3}[0-9|X])+$")
orcid = "https://orcid.org/0000-0001-7057-194X"
bool(re.match(pattern, orcid)) # False if ORCID syntax is wrongly specified
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request