From c2bcface13eff7d7e6d82797e0d4daf2213998d9 Mon Sep 17 00:00:00 2001 From: ali gruenhaupt Date: Mon, 16 Feb 2026 19:00:42 +0100 Subject: [PATCH] Update regex pattern for test ID validation Edited the regex pattern, so that Tests such as TC-I-XXX work with the CLI, which threw an error before. --- th_cli/validation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/th_cli/validation.py b/th_cli/validation.py index 70a072b..99c65ed 100644 --- a/th_cli/validation.py +++ b/th_cli/validation.py @@ -96,7 +96,7 @@ def validate_test_ids(test_ids: str) -> list[str]: raise CLIError("No valid test IDs provided") # Validate each test ID format - valid_pattern = re.compile(r"^TC[-_][A-Z_]{2,20}([-_\.]\d+){2,3}(-custom)?$") + valid_pattern = re.compile(r"^TC[-_][A-Z_]{1,20}([-_\.]\d+){2,3}(-custom)?$") invalid_ids = [] for test_id in ids: