fix(server): properly sanitize island names (#1393)
Co-authored-by: Lino Le Van <11367844+lino-levan@users.noreply.github.com>
This commit is contained in:
co-authored by
Lino Le Van
parent
ced2215446
commit
eb53d53ab8
@@ -931,7 +931,7 @@ function toPascalCase(text: string): string {
|
||||
}
|
||||
|
||||
function sanitizeIslandName(name: string): string {
|
||||
const fileName = name.replace("/", "");
|
||||
const fileName = name.replaceAll("/", "_");
|
||||
return toPascalCase(fileName);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user