mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-29 19:32:26 +08:00
fix: set korean status based on generated words
This commit is contained in:
parent
cc9eee1986
commit
aad3912eee
1 changed files with 11 additions and 0 deletions
|
|
@ -597,6 +597,17 @@ async function init(): Promise<boolean> {
|
|||
void Keymap.refresh();
|
||||
}
|
||||
|
||||
if (
|
||||
generatedWords
|
||||
.join()
|
||||
.normalize()
|
||||
.match(
|
||||
/[\uac00-\ud7af]|[\u1100-\u11ff]|[\u3130-\u318f]|[\ua960-\ua97f]|[\ud7b0-\ud7ff]/g
|
||||
)
|
||||
) {
|
||||
TestInput.input.setKoreanStatus(true);
|
||||
}
|
||||
|
||||
for (let i = 0; i < generatedWords.length; i++) {
|
||||
TestWords.words.push(
|
||||
generatedWords[i] as string,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue