Accept numbers in plugin names
This commit is contained in:
parent
bc90883f1a
commit
5644f9b035
|
@ -14,7 +14,7 @@ function isPluginTypeValid (value: any) {
|
|||
function isPluginNameValid (value: string) {
|
||||
return exists(value) &&
|
||||
validator.isLength(value, PLUGINS_CONSTRAINTS_FIELDS.NAME) &&
|
||||
validator.matches(value, /^[a-z-]+$/)
|
||||
validator.matches(value, /^[a-z-0-9]+$/)
|
||||
}
|
||||
|
||||
function isNpmPluginNameValid (value: string) {
|
||||
|
|
Loading…
Reference in New Issue