mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07: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)
|
assert isinstance(author, dict)
|
||||||
if author.get("email"):
|
if author.get("email"):
|
||||||
author["email"] = re.sub(r"\s+[aA][tT]\s+", "@", author["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()):
|
for key in list(author.keys()):
|
||||||
if author[key] is None:
|
if author[key] is None:
|
||||||
del author[key]
|
del author[key]
|
||||||
|
@ -279,7 +279,7 @@ ignore_empty_field=
|
|||||||
# Author + Maintainer
|
# Author + Maintainer
|
||||||
data = parser.LibraryPropertiesManifestParser(
|
data = parser.LibraryPropertiesManifestParser(
|
||||||
"""
|
"""
|
||||||
author=Rocket Scream Electronics
|
author=Rocket Scream Electronics <broken-email.com>
|
||||||
maintainer=Rocket Scream Electronics
|
maintainer=Rocket Scream Electronics
|
||||||
"""
|
"""
|
||||||
).as_dict()
|
).as_dict()
|
||||||
|
Reference in New Issue
Block a user