We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1570932 commit 72b5257Copy full SHA for 72b5257
dandischema/models.py
@@ -88,7 +88,7 @@
88
DANDI_DOI_PATTERN = (
89
rf"^{_INNER_DANDI_DOI_PATTERN}$"
90
if _INSTANCE_CONFIG.doi_prefix is not None
91
- else rf"^(?:{_INNER_DANDI_DOI_PATTERN})?$" # This matches an empty string as well
+ else rf"^({_INNER_DANDI_DOI_PATTERN}|)$" # This matches an empty string as well
92
)
93
DANDI_PUBID_PATTERN = rf"^{ID_PATTERN}:{VERSION_PATTERN}$"
94
DANDI_NSKEY = "dandi" # Namespace for DANDI ontology
0 commit comments