mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Do not allow [;.<>] chars for a package name
This commit is contained in:
@ -153,7 +153,9 @@ class ManifestSchema(BaseSchema):
|
||||
required=True,
|
||||
validate=[
|
||||
validate.Length(min=1, max=100),
|
||||
validate.Regexp(r"^[^:/]+$", error="The next chars [:/] are not allowed"),
|
||||
validate.Regexp(
|
||||
r"^[^:;/,@\<\>]+$", error="The next chars [:;/,@<>] are not allowed"
|
||||
),
|
||||
],
|
||||
)
|
||||
version = fields.Str(required=True, validate=validate.Length(min=1, max=50))
|
||||
|
Reference in New Issue
Block a user