mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-07 19:46:53 +00:00
fix regex
This commit is contained in:
@@ -60,7 +60,10 @@ 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.randomBytes(byteLength).toString("base64").replace(/[\\#]/g, "_");
|
return crypto
|
||||||
|
.randomBytes(byteLength)
|
||||||
|
.toString("base64")
|
||||||
|
.replace(/[/\\#]/g, "_");
|
||||||
}
|
}
|
||||||
|
|
||||||
export const TestData: TestItem[] = createTestItems();
|
export const TestData: TestItem[] = createTestItems();
|
||||||
|
|||||||
Reference in New Issue
Block a user