Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: branch name regexp (#7850)
boojack42e9cc56f4bc
diff --git a/frontend/src/components/SchemaDesigner/CreateSchemaDesignPanel.vue b/frontend/src/components/SchemaDesigner/CreateSchemaDesignPanel.vueindex ad9ffeec50..af1aa28b0f 100644--- a/frontend/src/components/SchemaDesigner/CreateSchemaDesignPanel.vue+++ b/frontend/src/components/SchemaDesigner/CreateSchemaDesignPanel.vue@@ -230,7 +230,7 @@ const handleConfirm = async () => {pushNotification({module: "bytebase",style: "CRITICAL",- title: "Branch name should valid characters: /^(a-zA-Z)[a-zA-Z0-9-_/]+$/",+ title: "Branch name valid characters: /^[a-zA-Z][a-zA-Z0-9-_/]+$/",});return;}diff --git a/frontend/src/components/SchemaDesigner/EditSchemaDesignPanel.vue b/frontend/src/components/SchemaDesigner/EditSchemaDesignPanel.vueindex 73e2ac1831..629cbc287a 100644--- a/frontend/src/components/SchemaDesigner/EditSchemaDesignPanel.vue+++ b/frontend/src/components/SchemaDesigner/EditSchemaDesignPanel.vue@@ -327,7 +327,7 @@ const handleSaveBranchTitle = async () => {pushNotification({module: "bytebase",style: "CRITICAL",- title: "Branch name should valid characters: /^(a-zA-Z)[a-zA-Z0-9-_/]+$/",+ title: "Branch name valid characters: /^[a-zA-Z][a-zA-Z0-9-_/]+$/",});return;}diff --git a/frontend/src/components/SchemaDesigner/common/util.ts b/frontend/src/components/SchemaDesigner/common/util.tsindex 994c9af58d..40def226b3 100644--- a/frontend/src/components/SchemaDesigner/common/util.ts+++ b/frontend/src/components/SchemaDesigner/common/util.ts@@ -514,6 +514,6 @@ export const generateForkedBranchName = (branch: SchemaDesign): string => {};export const validateBranchName = (branchName: string): boolean => {- const regex = /^(a-zA-Z)[a-zA-Z0-9-_/]+$/;+ const regex = /^[a-zA-Z][a-zA-Z0-9-_/]+$/;return regex.test(branchName);};