mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-27 16:24:41 +08:00
refactor: replace underscores
This commit is contained in:
parent
fa01558876
commit
73aca5b570
1 changed files with 3 additions and 2 deletions
|
@ -25,9 +25,10 @@ export function updateTime(sec: number, layout: string): void {
|
|||
}
|
||||
|
||||
export function updateWords(words: number, layout: string): void {
|
||||
let str = `${capitalizeFirstLetter(layout)} in: ${words} words`;
|
||||
const layoutName = capitalizeFirstLetter(layout.replace(/_/g, " "));
|
||||
let str = `${layoutName} in: ${words} words`;
|
||||
if (words === 1) {
|
||||
str = `${capitalizeFirstLetter(layout)} starting next word`;
|
||||
str = `${layoutName} starting next word`;
|
||||
}
|
||||
$("#typingTest #layoutfluidTimer").text(str);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue