Sfoglia il codice sorgente

Add uppercase letters to random topic name generation

Signed-off-by: Yarden Shoham <hrsi88@gmail.com>
Yarden Shoham 3 anni fa
parent
commit
d78f1a3ff9
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      web/src/app/utils.js

+ 1 - 1
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];