Fix tableName assertion to allow uppercase

master
Sven Slootweg 10 months ago
parent 575ae856d8
commit ded40d3a97

@ -8,7 +8,7 @@ module.exports = async function knexIntrospect(knex, tableName) {
let clientType = knex.client.config.client;
assert(clientType === "sqlite3" || clientType === "pg");
assert(/^[a-zA_Z_]+$/.test(tableName));
assert(/^[a-zA-Z_]+$/.test(tableName));
let safeTableName = tableName; // FIXME: Sanitize instead of assert?
let tableLayout = {};

Loading…
Cancel
Save