fix migration naming

This commit is contained in:
Timo Hocker 2020-03-09 10:11:38 +01:00
parent 7876b75afa
commit 91ae8d0061

View File

@ -47,8 +47,8 @@ function assert (folder, args) {
reason: 'name is not a string'
},
{
f: () => ((/^(?:[0-9]+-[a-z]+|csv)$/iu).test (args[0])),
reason: 'name has to match /^[0-9]+-[a-z]+$/'
f: () => ((/^(?:[0-9]+[-_][a-z-_]+|csv)$/iu).test (args[0])),
reason: 'name has to match /^[0-9]+[-_][a-z-_]+$/'
},
{
f: () => (typeof folder === 'string'),