mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-05-16 20:26:58 +00:00
fix the checkdesc function
This commit is contained in:
parent
fa3f1e4661
commit
7d90328ff4
3 changed files with 9 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue