From bdf093bbf93b923d7f069bebeada9b306c2a96ea Mon Sep 17 00:00:00 2001 From: Daniel Barnes Date: Mon, 25 Sep 2023 14:20:25 -0700 Subject: [PATCH] Allow caps in dirname --- gto/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gto/constants.py b/gto/constants.py index 8ac794bd..0fd294d6 100644 --- a/gto/constants.py +++ b/gto/constants.py @@ -41,7 +41,7 @@ def tag_to_name(value): return value.replace(SEPARATOR_IN_TAG, SEPARATOR_IN_NAME) -dirname = "[a-z0-9-_./]+" # improve? +dirname = "[a-zA-Z0-9-_./]+" # improve? name = r"[a-z0-9]([a-z0-9-/_]*[a-z0-9])?" semver = r"(?P0|[1-9]\d*)\.(?P0|[1-9]\d*)\.(?P0|[1-9]\d*)(?:-(?P(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?P[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?" counter = "?P[0-9]+"