fix 'no minus in node name'

This commit is contained in:
Timo Hocker 2020-03-04 11:49:35 +01:00
parent 454f0781df
commit 8c47eef18f

View File

@ -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'),