From 53894076da8a2d6b650e470fe94445894b86b803 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 10 May 2020 15:06:05 +0200 Subject: [PATCH] Allow 0 to be used in ID field --- package_linter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package_linter.py b/package_linter.py index 251c910..9d8f779 100755 --- a/package_linter.py +++ b/package_linter.py @@ -506,8 +506,8 @@ class App(): # YEP 1.1 Name is app if "id" in manifest: - if not re.match('^[a-z1-9]((_|-)?[a-z1-9])+$', manifest["id"]): - print_error("[YEP-1.1] 'id' field '%s' should respect this regex '^[a-z1-9]((_|-)?[a-z1-9])+$'") + 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-z0-9]((_|-)?[a-z0-9])+$'") if "name" in manifest: if len(manifest["name"]) > 22: