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