From 9a09375506c6a0e52c91f6105aa6d219d55843e1 Mon Sep 17 00:00:00 2001 From: lannoy0523 <46735290+lannoy0523@users.noreply.github.com> Date: Wed, 17 Apr 2024 17:27:16 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=E9=A1=B9=E7=9B=AE=E6=A0=87=E8=AF=86?= =?UTF-8?q?=E6=88=96=E8=80=85=E9=A1=B9=E7=9B=AE=E5=90=8D=E7=A7=B0=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E8=B6=85=E8=BF=8732=E5=B0=B1=E4=BC=9A=E6=8A=A5'?= =?UTF-8?q?=E5=8F=82=E6=95=B0[xx]=E6=97=A0=E6=95=88'=20#1970?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bkrepo/repository/service/repo/impl/ProjectServiceImpl.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/repository/biz-repository/src/main/kotlin/com/tencent/bkrepo/repository/service/repo/impl/ProjectServiceImpl.kt b/src/backend/repository/biz-repository/src/main/kotlin/com/tencent/bkrepo/repository/service/repo/impl/ProjectServiceImpl.kt index a5dbb6f4a8..5dd86b9283 100644 --- a/src/backend/repository/biz-repository/src/main/kotlin/com/tencent/bkrepo/repository/service/repo/impl/ProjectServiceImpl.kt +++ b/src/backend/repository/biz-repository/src/main/kotlin/com/tencent/bkrepo/repository/service/repo/impl/ProjectServiceImpl.kt @@ -270,9 +270,9 @@ class ProjectServiceImpl( companion object { private val logger = LoggerFactory.getLogger(ProjectServiceImpl::class.java) - private const val PROJECT_NAME_PATTERN = "[a-zA-Z_][a-zA-Z0-9\\-_]{1,31}" + private const val PROJECT_NAME_PATTERN = "[a-zA-Z_][a-zA-Z0-9\\-_]{1,99}" private const val DISPLAY_NAME_LENGTH_MIN = 2 - private const val DISPLAY_NAME_LENGTH_MAX = 32 + private const val DISPLAY_NAME_LENGTH_MAX = 100 private fun convert(tProject: TProject?): ProjectInfo? { return convert(tProject, false)