mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Allow 0 to be used in ID field
This commit is contained in:
parent
c6b559998c
commit
53894076da
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue