mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-04 04:51:16 +08:00
improved custom text preprocessing to remove new line, tab characters and double spaces
This commit is contained in:
parent
801d0358b5
commit
f76551f629
1 changed files with 2 additions and 0 deletions
|
@ -612,6 +612,8 @@ function focusWords() {
|
|||
|
||||
function changeCustomText() {
|
||||
customText = prompt("Custom text");
|
||||
customText = customText.replace(/[\n\r\t ]/gm, ' ');
|
||||
customText = customText.replace(/ +/gm, ' ');
|
||||
initWords();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue