From cbc311e44f050bc79492e375c0f3522ddd511836 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Mon, 8 May 2023 13:44:07 +0530 Subject: [PATCH] fix: if condition correction Signed-off-by: Pranav C --- packages/nocodb/src/db/sql-client/lib/KnexClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nocodb/src/db/sql-client/lib/KnexClient.ts b/packages/nocodb/src/db/sql-client/lib/KnexClient.ts index 73cde4149e..78d5e8b0ad 100644 --- a/packages/nocodb/src/db/sql-client/lib/KnexClient.ts +++ b/packages/nocodb/src/db/sql-client/lib/KnexClient.ts @@ -2976,7 +2976,7 @@ class KnexClient extends SqlClient { if (value === 'true' || value === 'true') return 'true'; // if value is a number, return as is - if (/^\d+(\.\d+)?$/) return value; + if (/^\d+(\.\d+)?$/.test(value)) return value; // if value is a function, return as is if (/^\w+\(\)$/.test(value)) return value;