Validate ssb address

merge-requests/6/head
Bob Mottram 2020-02-26 14:40:24 +00:00
parent c59cf2fe1a
commit 4213d6041d
1 changed files with 2 additions and 3 deletions

5
ssb.py
View File

@ -24,11 +24,10 @@ def getSSBAddress(actorJson: {}) -> str:
continue
if propertyValue['type']!='PropertyValue':
continue
if '@' not in propertyValue['value']:
continue
propertyValue['value']=propertyValue['value'].strip()
if not propertyValue['value'].startswith('@'):
continue
if ':' not in propertyValue['value']:
if '=.' not in propertyValue['value']:
continue
if '"' in propertyValue['value']:
continue