mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-18 14:55:34 +08:00
fix(custom text): test sometimes failing to initialize when using pipe delimiter
This commit is contained in:
parent
9e0c02ac29
commit
04774dee25
1 changed files with 2 additions and 1 deletions
|
|
@ -266,7 +266,8 @@ function apply(): void {
|
|||
}
|
||||
}
|
||||
|
||||
CustomText.setText(text.split(CustomText.delimiter));
|
||||
const words = text.split(CustomText.delimiter).filter((word) => word !== "");
|
||||
CustomText.setText(words);
|
||||
|
||||
CustomText.setWord(
|
||||
parseInt(($(`${popup} .wordcount input`).val() as string) || "-1")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue