make sure that simplex chatroom links with a ; arent accepted, and that option 4 removes duplicates before iterating

This commit is contained in:
root 2025-05-04 23:02:02 +02:00
parent 075ea091d4
commit 22489e571e
2 changed files with 35 additions and 23 deletions

View file

@ -150,6 +150,8 @@ def IsUrlValid(url:str)->bool:
else:
if not url.__contains__('.'):
return False
if url.__contains__(';'):
return False #required otherwise lantern thinks there are extra columns
if pattern.fullmatch(url) is None:
return False
return True