From d78f1a3ff935ea1d175f5fe00bfc33d97d6878eb Mon Sep 17 00:00:00 2001 From: Yarden Shoham Date: Fri, 9 Dec 2022 20:28:12 +0000 Subject: [PATCH] Add uppercase letters to random topic name generation Signed-off-by: Yarden Shoham --- web/src/app/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/app/utils.js b/web/src/app/utils.js index 8b64b2c..fa324ca 100644 --- a/web/src/app/utils.js +++ b/web/src/app/utils.js @@ -242,7 +242,7 @@ export async function* fetchLinesIterator(fileURL, headers) { } export const randomAlphanumericString = (len) => { - const alphabet = "abcdefghijklmnopqrstuvwxyz0123456789"; + const alphabet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; let id = ""; for (let i = 0; i < len; i++) { id += alphabet[(Math.random() * alphabet.length) | 0];