Closed ta-kiyama closed 6 years ago
When I use generate command, Some filename doesn't match.
generate
knex-migrate generate [hoge]
YYYYMMDDhhmmss_[hoge].js
knex-migrate up
https://github.com/sheerun/knex-migrate/blob/master/src/index.js#L115
This regexp accepts only [\w-_]+. So, some filename doesn't match this regexp; e.g. [ and ]
[\w-_]+
[
]
knex.js migrations cli supports any filename, so, I want knex-migrate supports it too.
merged pr and released as 1.7.0
When I use
generate
command, Some filename doesn't match.example
knex-migrate generate [hoge]
YYYYMMDDhhmmss_[hoge].js
is created successflly.knex-migrate up
YYYYMMDDhhmmss_[hoge].js
doesn't recognize.reason
https://github.com/sheerun/knex-migrate/blob/master/src/index.js#L115
This regexp accepts only
[\w-_]+
. So, some filename doesn't match this regexp; e.g.[
and]
knex.js migrations cli supports any filename, so, I want knex-migrate supports it too.