fix the checkdesc function

This commit is contained in:
root 2025-01-23 08:51:04 +01:00
parent fa3f1e4661
commit 7d90328ff4
3 changed files with 9 additions and 5 deletions

View file

@ -1124,7 +1124,7 @@ def IsDescriptionValid(desc:str)->bool:
if desc == "":
# empty description is fine as it's optional
return True
pattern = re.compile("^[A-Za-z0-9-.' \"]+$")
pattern = re.compile("^[A-Za-z0-9-.,' \"]+$")
desc = str(desc)
desc.strip()
if pattern.fullmatch(desc) is None: