fix 'no minus in node name'
This commit is contained in:
parent
454f0781df
commit
8c47eef18f
@ -88,8 +88,8 @@ function assert (folder, args) {
|
||||
reason: 'name is not a string'
|
||||
},
|
||||
{
|
||||
f: () => (args.length === 0 || (/^[a-z]+$/iu).test (args[0])),
|
||||
reason: 'name can only contain [a-z]'
|
||||
f: () => (args.length === 0 || (/^[a-z-]+$/iu).test (args[0])),
|
||||
reason: 'name can only contain [a-z-]'
|
||||
},
|
||||
{
|
||||
f: () => (typeof folder === 'string'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user