Selaa lähdekoodia

remove uppercases in plugin name

Yeuoly 1 vuosi sitten
vanhempi
commit
f56a956a4e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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})?$`)
 )