From 5ea742b51c51e950502ac2e123fcd36045e3e788 Mon Sep 17 00:00:00 2001 From: Rudo Kemper Date: Wed, 5 Aug 2026 16:33:09 -0400 Subject: [PATCH] Allow leading digit in col projection --- server/database/dbOperations.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/database/dbOperations.ts b/server/database/dbOperations.ts index 7a7f2fd1..7ca9bbae 100644 --- a/server/database/dbOperations.ts +++ b/server/database/dbOperations.ts @@ -129,8 +129,8 @@ export const buildViewConfigColumns = ( }; }; -// Unicode letters/digits/marks. sql.identifier quotes these. -const VALID_COLUMN_NAME = /^[\p{L}_][\p{L}\p{N}\p{M}_]*$/u; +// Unicode letters/digits/marks. sql.identifier quotes these (so leading digits are OK). +const VALID_COLUMN_NAME = /^[\p{L}\p{N}_][\p{L}\p{N}\p{M}_]*$/u; /** * Normalizes and validates a projection list before a SQL read is built.