Skip to content

Commit ef1d88a

Browse files
committed
include @ for emails
1 parent 42fb11a commit ef1d88a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/models-library/src/models_library/string_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def validate_input_xss_safety(value: str) -> str:
202202
min_length=3,
203203
max_length=200,
204204
strip_whitespace=True,
205-
pattern=r"^[A-Za-z0-9 ._\*-]*$", # Allow alphanumeric, spaces, dots, underscores, hyphens, and asterisks
205+
pattern=r"^[A-Za-z0-9 ._\*@-]*$", # Allow alphanumeric, spaces, dots, underscores, hyphens, asterisks and at signs
206206
),
207207
AfterValidator(validate_input_xss_safety),
208208
]

0 commit comments

Comments
 (0)