Skip to content

Commit

Permalink
policy resource name validation 버그 픽스
Browse files Browse the repository at this point in the history
  • Loading branch information
sangkenlee committed Apr 15, 2024
1 parent 8286ab5 commit af8435c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/validator/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,10 @@ func validatePascalCase(fl validator.FieldLevel) bool {
}

func validateResourceName(fl validator.FieldLevel) bool {
// 정책 리소스 이름을 지정하지 않으면 지정하기 때문에 유효함
// 다른 리소스 이름을 처리할 때에는 분리 필요
if fl.Field().String() == "" {
return false
return true
}

r, _ := regexp.Compile(REGEX_RESOURCE_NAME)
Expand Down

0 comments on commit af8435c

Please sign in to comment.