fix(server): sanitize brackets from island names (#1723)

This commit is contained in:
Reed von Redwitz
2023-09-01 15:58:15 +02:00
committed by GitHub
parent 03df5f7306
commit 4a4af1f915
5 changed files with 121 additions and 46 deletions
+1 -1
View File
@@ -1218,7 +1218,7 @@ function toPascalCase(text: string): string {
}
function sanitizeIslandName(name: string): string {
const fileName = name.replaceAll(/[/\\\\\(\)]/g, "_");
const fileName = name.replaceAll(/[/\\\\\(\)\[\]]/g, "_");
return toPascalCase(fileName);
}