Allow 0 to be used in ID field

This commit is contained in:
ericgaspar 2020-05-10 15:06:05 +02:00 committed by Alexandre Aubin
parent c6b559998c
commit 53894076da

View file

@ -506,8 +506,8 @@ class App():
# YEP 1.1 Name is app # YEP 1.1 Name is app
if "id" in manifest: if "id" in manifest:
if not re.match('^[a-z1-9]((_|-)?[a-z1-9])+$', manifest["id"]): if not re.match('^[a-z0-9]((_|-)?[a-z0-9])+$', manifest["id"]):
print_error("[YEP-1.1] 'id' field '%s' should respect this regex '^[a-z1-9]((_|-)?[a-z1-9])+$'") print_error("[YEP-1.1] 'id' field '%s' should respect this regex '^[a-z0-9]((_|-)?[a-z0-9])+$'")
if "name" in manifest: if "name" in manifest:
if len(manifest["name"]) > 22: if len(manifest["name"]) > 22: