-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
problemFixing a problemFixing a problem
Milestone
Description
The email validation regex in cli/core/variable.py line 12 is malformed:
EMAIL_REGEX = re.compile(r"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$")The double backslashes are causing it to match literal backslash-s characters instead of whitespace. It should be:
EMAIL_REGEX = re.compile(r"^[^@\s]+@[^@\s]+\.[^@\s]+$")This causes email validation to fail for all valid email addresses like [email protected].
Steps to reproduce:
- Create a template with an email type variable with default
[email protected] - Run
compose validate - Validation fails with "value must be a valid email address"
Expected behavior:
Standard email addresses should pass validation.
Metadata
Metadata
Assignees
Labels
problemFixing a problemFixing a problem