From 3528bdcde465d129b16f41232376c3ecfe99d017 Mon Sep 17 00:00:00 2001 From: Santosh Bhandari Date: Thu, 7 Sep 2023 23:08:22 +0545 Subject: [PATCH] fix: update the actual max length for bundle names --- src/models/bundle-descriptor-constraints.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/bundle-descriptor-constraints.ts b/src/models/bundle-descriptor-constraints.ts index e2b88a28..9e36cf36 100644 --- a/src/models/bundle-descriptor-constraints.ts +++ b/src/models/bundle-descriptor-constraints.ts @@ -38,7 +38,7 @@ import { export const ALLOWED_NAME_REGEXP = /^[\da-z]+(?:([.-])[\da-z]+)*$/ export const ALLOWED_VERSION_REGEXP = /^\w+[\w.-]*$/ export const MAX_VERSION_LENGTH = 128 -export const MAX_NAME_LENGTH = 50 +export const MAX_NAME_LENGTH = 31 export const MAX_WIDGET_CATEGORY_LENGTH = 80 export const INVALID_NAME_MESSAGE = 'The Name may contain lowercase letters, digits and separators. A separator is defined as a period, or a dash. The name may not start or end with a separator.'