forked from platformio/platformio-core
Ignore author's broken email in a package manifest
This commit is contained in:
1 parent
ef53bcf601
commit
a79e933c37
2 files changed
+3
-1
No files matched your search
@@ -185,6 +185,8 @@ class BaseManifestParser(object):
|
||||
assert isinstance(author, dict)
|
||||
if author.get("email"):
|
||||
author["email"] = re.sub(r"\s+[aA][tT]\s+", "@", author["email"])
|
||||
if "@" not in author["email"]:
|
||||
author["email"] = None
|
||||
for key in list(author.keys()):
|
||||
if author[key] is None:
|
||||
del author[key]
|
||||
|
||||
Reference in new issue
Block a user