mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-12 15:08:45 +08:00
fixed british english not working for english commonly misspelled
This commit is contained in:
parent
defde508ab
commit
ed32502798
1 changed files with 1 additions and 4 deletions
|
@ -578,10 +578,7 @@ export async function init() {
|
|||
randomWord = wordset.randomWord();
|
||||
}
|
||||
|
||||
if (
|
||||
Config.britishEnglish &&
|
||||
Config.language.replace(/_\d*k$/g, "") === "english"
|
||||
) {
|
||||
if (Config.britishEnglish && /english/.test(Config.language)) {
|
||||
let britishWord = await BritishEnglish.replace(randomWord);
|
||||
if (britishWord) randomWord = britishWord;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue