浏览代码

remove uppercases in plugin name

Yeuoly 1 年之前
父节点
当前提交
f56a956a4e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      internal/types/entities/plugin_entities/plugin_declaration.go

+ 1 - 1
internal/types/entities/plugin_entities/plugin_declaration.go

@@ -153,7 +153,7 @@ type PluginDeclaration struct {
 }
 
 var (
-	PluginNameRegex               = regexp.MustCompile(`^[a-zA-Z0-9_-]{1,128}$`)
+	PluginNameRegex               = regexp.MustCompile(`^[a-z0-9_-]{1,128}$`)
 	PluginDeclarationVersionRegex = regexp.MustCompile(`^\d{1,4}(\.\d{1,4}){1,3}(-\w{1,16})?$`)
 )