FIX: fixed sanitiser default not including whitespace

This commit is contained in:
white
2025-03-05 15:45:01 +00:00
parent 7426394153
commit e9599e7b68

View File

@@ -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,
},