mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-27 17:27:32 +08:00
parent
c5712c48a8
commit
82f2eb2af7
1 changed files with 4 additions and 2 deletions
|
|
@ -865,8 +865,10 @@ export async function init(): Promise<void> {
|
|||
TestWords.setHasTab(true);
|
||||
}
|
||||
|
||||
if (/ +/.test(randomWord)) {
|
||||
const randomList = randomWord.split(" ");
|
||||
const te = randomWord.replace("\n", "\n ").trim();
|
||||
|
||||
if (/ +/.test(te)) {
|
||||
const randomList = te.split(" ");
|
||||
let id = 0;
|
||||
while (id < randomList.length) {
|
||||
TestWords.words.push(randomList[id]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue