fix: Database connection lost error

This commit is contained in:
Ahmed Bouhuolia
2024-08-15 23:43:39 +02:00
parent bbbd96f159
commit fde9ccc5ca
12 changed files with 95 additions and 56 deletions

View File

@@ -0,0 +1,4 @@
export function sanitizeDatabaseName(dbName: string) {
// Replace any character that is not alphanumeric or an underscore with an underscore
return dbName.replace(/[^a-zA-Z0-9_]/g, '');
}