mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Minor fixes to manifest parser
This commit is contained in:
2
docs
2
docs
Submodule docs updated: e755c715ff...3c565d175d
@ -72,7 +72,7 @@ class ManifestModel(DataModel):
|
|||||||
type=ListOfType(DataField(max_length=50, regex=r"^([a-z\d\-_]+|\*)$"))
|
type=ListOfType(DataField(max_length=50, regex=r"^([a-z\d\-_]+|\*)$"))
|
||||||
)
|
)
|
||||||
frameworks = DataField(
|
frameworks = DataField(
|
||||||
type=ListOfType(DataField(max_length=50, regex=r"^([a-z\d\-_\*]+|\*)$"))
|
type=ListOfType(DataField(max_length=50, regex=r"^([a-z\d\-_]+|\*)$"))
|
||||||
)
|
)
|
||||||
|
|
||||||
repository = DataField(type=RepositoryModel)
|
repository = DataField(type=RepositoryModel)
|
||||||
|
@ -240,6 +240,7 @@ class BaseManifestParser(object):
|
|||||||
|
|
||||||
# normalize example names
|
# normalize example names
|
||||||
for item in result:
|
for item in result:
|
||||||
|
item["name"] = item["name"].replace(os.path.sep, "/")
|
||||||
item["name"] = re.sub(r"[^a-z\d\d\-\_/]+", "_", item["name"], flags=re.I)
|
item["name"] = re.sub(r"[^a-z\d\d\-\_/]+", "_", item["name"], flags=re.I)
|
||||||
|
|
||||||
return result or None
|
return result or None
|
||||||
|
Reference in New Issue
Block a user