fix(server): sanitize brackets from island names (#1723)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user