From ded40d3a97eb2f0408cc19602c49f4e627850eaa Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sat, 13 Jan 2024 00:34:26 +0100 Subject: [PATCH] Fix tableName assertion to allow uppercase --- src/introspect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/introspect.js b/src/introspect.js index 801c442..07fecf9 100644 --- a/src/introspect.js +++ b/src/introspect.js @@ -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 = {};