diff --git a/web_server/utils/utils.py b/web_server/utils/utils.py index cee94a2..6bd20b1 100644 --- a/web_server/utils/utils.py +++ b/web_server/utils/utils.py @@ -77,7 +77,7 @@ def sanitize(user_input: str, input_type="default") -> str: "max_length": 256, }, "default": { - "pattern": r"^[\S]+$", # Non-whitespace characters only + "pattern": r"^[\w\s]+$", # Non-whitespace characters only "min_length": 1, "max_length": 50, },