mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-26 15:54:35 +08:00
removed problematic characters from ascii temporairly
This commit is contained in:
parent
b6568cd75b
commit
6d496fe983
1 changed files with 3 additions and 1 deletions
|
@ -595,7 +595,9 @@ export function getASCII(): string {
|
|||
const randLen = Math.floor(Math.random() * 10) + 1;
|
||||
let ret = "";
|
||||
for (let i = 0; i < randLen; i++) {
|
||||
ret += String.fromCharCode(33 + Math.floor(Math.random() * 94));
|
||||
let ran = 33 + Math.floor(Math.random() * 94);
|
||||
while (ran == 96 || ran == 94) ran = 33 + Math.floor(Math.random() * 94); //todo remove when input rewrite is fixed
|
||||
ret += String.fromCharCode(ran);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue