Accept numbers in plugin names

pull/2737/head
Chocobozzz 2020-04-30 16:32:24 +02:00 committed by Chocobozzz
parent bc90883f1a
commit 5644f9b035
1 changed files with 1 additions and 1 deletions

View File

@ -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) {