mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Ignore author's broken email in a package manifest
This commit is contained in:
@ -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]
|
||||
|
@ -279,7 +279,7 @@ ignore_empty_field=
|
||||
# Author + Maintainer
|
||||
data = parser.LibraryPropertiesManifestParser(
|
||||
"""
|
||||
author=Rocket Scream Electronics
|
||||
author=Rocket Scream Electronics <broken-email.com>
|
||||
maintainer=Rocket Scream Electronics
|
||||
"""
|
||||
).as_dict()
|
||||
|
Reference in New Issue
Block a user