From 50d29e7934cb1c730776b22a00a75e9c9d53e7db Mon Sep 17 00:00:00 2001 From: librelois <elois@ifee.fr> Date: Sun, 5 Nov 2017 23:34:05 +0100 Subject: [PATCH] [fix] authorize ._- in software name and authorize - in software version --- app/lib/common-libs/constants.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/common-libs/constants.ts b/app/lib/common-libs/constants.ts index 14465aade..8d9f21476 100644 --- a/app/lib/common-libs/constants.ts +++ b/app/lib/common-libs/constants.ts @@ -18,8 +18,8 @@ const POSITIVE_INT = "[1-9][0-9]{0,18}" const TIMESTAMP = "[1-9][0-9]{0,18}" const BOOLEAN = "[01]" const WS2PID = "[0-9a-f]{8}" -const SOFTWARE = "[a-z0-9]{2,15}" -const SOFT_VERSION = "[0-9a-z.-_]{2,15}" +const SOFTWARE = "[a-z0-9._-]{2,15}" +const SOFT_VERSION = "[0-9a-z._-]{2,15}" const POW_PREFIX = "([1-9]|[1-9][0-9]|[1-8][0-9][0-9])" // 1-899 const SPECIAL_BLOCK = '0-E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855' const META_TS = "META:TS:" + BLOCK_UID -- GitLab