Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: update table name regex (#8834)

boojack3311fde6cb6f
diff --git a/frontend/src/components/SchemaEditorV1/Modals/TableNameModal.vue b/frontend/src/components/SchemaEditorV1/Modals/TableNameModal.vue
index b55348297e..722b7e5b39 100644
--- a/frontend/src/components/SchemaEditorV1/Modals/TableNameModal.vue
+++ b/frontend/src/components/SchemaEditorV1/Modals/TableNameModal.vue
@@ -47,7 +47,8 @@ import {
convertTableMetadataToTable,
} from "@/types/v1/schemaEditor";
-const tableNameFieldRegexp = /^\S+$/;
+// Table name must start with a non-space character, end with a non-space character, and can contain space in between.
+const tableNameFieldRegexp = /^\S[\S ]*\S?$/;
interface LocalState {
tableName: string;