Do not allow [;.<>] chars for a package name

This commit is contained in:
Ivan Kravets
2020-07-03 19:14:58 +03:00
parent b3dabb221d
commit 08a87f3a21

View File

@ -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))