mirror of https://gitlab.com/bashrc2/epicyon
Detecting email profile property
parent
04b974160b
commit
f0607a03e1
6
pgp.py
6
pgp.py
|
@ -55,9 +55,9 @@ def get_email_address(actor_json: {}) -> str:
|
||||||
name_value = property_value['schema:name']
|
name_value = property_value['schema:name']
|
||||||
if not name_value:
|
if not name_value:
|
||||||
continue
|
continue
|
||||||
if not name_value.lower().startswith('email'):
|
name_value_lower = name_value.lower()
|
||||||
if 'Mail' not in name_value:
|
if 'email' not in name_value_lower:
|
||||||
continue
|
continue
|
||||||
if not property_value.get('type'):
|
if not property_value.get('type'):
|
||||||
continue
|
continue
|
||||||
prop_value_name, _ = \
|
prop_value_name, _ = \
|
||||||
|
|
Loading…
Reference in New Issue