소스 검색

allow uppercase of plugin and author name

非法操作 6 달 전
부모
커밋
21dd163580
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      pkg/entities/plugin_entities/plugin_declaration.go

+ 2 - 2
pkg/entities/plugin_entities/plugin_declaration.go

@@ -233,8 +233,8 @@ func (p *PluginDeclaration) MarshalJSON() ([]byte, error) {
 }
 
 var (
-	PluginNameRegex = regexp.MustCompile(`^[a-z0-9_-]{1,128}$`)
-	AuthorRegex     = regexp.MustCompile(`^[a-z0-9_-]{1,64}$`)
+	PluginNameRegex = regexp.MustCompile(`^[a-zA-Z0-9_-]{1,128}$`)
+	AuthorRegex     = regexp.MustCompile(`^[a-zA-Z0-9_-]{1,64}$`)
 )
 
 func isPluginName(fl validator.FieldLevel) bool {