Skip to content

Commit

Permalink
bugfix:项目标识或者项目名称输入超过32就会报'参数[xx]无效' TencentBlueKing#1970
Browse files Browse the repository at this point in the history
  • Loading branch information
lannoy0523 authored Apr 17, 2024
1 parent 640da50 commit 9a09375
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9a09375

Please sign in to comment.