From d72f671be454c9dd952ef69059cc7caf16df9505 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Thu, 2 Jan 2014 19:16:11 +0100 Subject: [PATCH] Integer fields cannot have leading zeros --- fdroidserver/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdroidserver/metadata.py b/fdroidserver/metadata.py index 07a0cd3f..fe6dc4c1 100644 --- a/fdroidserver/metadata.py +++ b/fdroidserver/metadata.py @@ -75,7 +75,7 @@ class FieldType(): # Generic value types valuetypes = { 'int' : FieldType("Integer", - r'^[0-9]+$', None, + r'^[1-9][0-9]*$', None, [ 'FlattrID' ], [ 'vercode' ]),