fix regex

This commit is contained in:
Asier Isayas
2025-12-19 10:26:53 -08:00
parent 37a5663bad
commit 3ea5a059b0

View File

@@ -60,7 +60,10 @@ function createTestItems(): TestItem[] {
// Document IDs cannot contain '/', '\', or '#'
function createSafeRandomString(byteLength: number): string {
return crypto.randomBytes(byteLength).toString("base64").replace(/[\\#]/g, "_");
return crypto
.randomBytes(byteLength)
.toString("base64")
.replace(/[/\\#]/g, "_");
}
export const TestData: TestItem[] = createTestItems();