From 326c4589aceb207be60ca099f84a29fe9215c126 Mon Sep 17 00:00:00 2001 From: Thibaut Le Page Date: Mon, 4 Nov 2019 12:51:42 +0100 Subject: [PATCH] validators.py: allow team names to contain underscores --- pierone/validators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pierone/validators.py b/pierone/validators.py index b8eaae9..e2c1bb0 100644 --- a/pierone/validators.py +++ b/pierone/validators.py @@ -8,7 +8,7 @@ INCIDENT_PATTERN = re.compile(r'^INC-\d+$') -TEAM_PATTERN_STR = r'[a-z][a-z0-9-]+' +TEAM_PATTERN_STR = r'[a-z][a-z0-9_-]+' TEAM_PATTERN = re.compile(r'^{}$'.format(TEAM_PATTERN_STR))