mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-06-12 15:37:27 +01:00
format
This commit is contained in:
+1
-4
@@ -60,10 +60,7 @@ function createTestItems(): TestItem[] {
|
|||||||
|
|
||||||
// Document IDs cannot contain '/', '\', or '#'
|
// Document IDs cannot contain '/', '\', or '#'
|
||||||
function createSafeRandomString(byteLength: number): string {
|
function createSafeRandomString(byteLength: number): string {
|
||||||
return crypto
|
return crypto.randomBytes(byteLength).toString("base64").replace(/[\\#]/g, "_");
|
||||||
.randomBytes(byteLength)
|
|
||||||
.toString("base64")
|
|
||||||
.replace(/[\\#]/g, "_");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const TestData: TestItem[] = createTestItems();
|
export const TestData: TestItem[] = createTestItems();
|
||||||
|
|||||||
Reference in New Issue
Block a user