mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47: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\-_]+|\*)$"))
|
||||
)
|
||||
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)
|
||||
|
@ -240,6 +240,7 @@ class BaseManifestParser(object):
|
||||
|
||||
# normalize example names
|
||||
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)
|
||||
|
||||
return result or None
|
||||
|
Reference in New Issue
Block a user