This commit is contained in:
Asier Isayas
2025-12-17 11:35:28 -08:00
parent 31c9574df4
commit 37a5663bad

View File

@@ -60,10 +60,7 @@ 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();