From 281e4891db54c77cf4dca801954b92501b0580b2 Mon Sep 17 00:00:00 2001 From: Sean C Francis-Lyon Date: Sat, 20 Apr 2024 11:28:34 -0600 Subject: [PATCH] Allow uppercase letters in task names (#3453) The error message specifically states that upper case letters are allowed, but the regex previously did not allow them. --- sky/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sky/task.py b/sky/task.py index ad3519f92e4..d66e6313f06 100644 --- a/sky/task.py +++ b/sky/task.py @@ -33,7 +33,7 @@ CommandGen = Callable[[int, List[str]], Optional[str]] CommandOrCommandGen = Union[str, CommandGen] -_VALID_NAME_REGEX = '[a-z0-9]+(?:[._-]{1,2}[a-z0-9]+)*' +_VALID_NAME_REGEX = '[a-zA-Z0-9]+(?:[._-]{1,2}[a-zA-Z0-9]+)*' _VALID_NAME_DESCR = ('ASCII characters and may contain lowercase and' ' uppercase letters, digits, underscores, periods,' ' and dashes. Must start and end with alphanumeric'