Skip to content

Commit 5f6eb8f

Browse files
Allow comma (,) and space ( ) in strings
1 parent d792c78 commit 5f6eb8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mxcubeweb/core/server/resource_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def validate_input_str(input_string: str) -> bool:
3737
Returns:
3838
bool: True if the string is valid, False otherwise.
3939
"""
40-
pattern = r"^[a-zA-Z0-9._]*$"
40+
pattern = r"^[a-zA-Z0-9._, ]*$"
4141
return bool(re.match(pattern, input_string))
4242

4343

0 commit comments

Comments
 (0)