mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-08 14:42:46 +08:00
fixed new line and tabs not parsing properly
This commit is contained in:
parent
bf78ec2327
commit
94e2db14f3
1 changed files with 2 additions and 0 deletions
|
@ -4069,6 +4069,8 @@ $("#customTextPopup .button").click(() => {
|
|||
// text = text.replace(/[\r]/gm, " ");
|
||||
text = text.replace(/\\\\t/gm, "\t");
|
||||
text = text.replace(/\\\\n/gm, "\n");
|
||||
text = text.replace(/\\t/gm, "\t");
|
||||
text = text.replace(/\\n/gm, "\n");
|
||||
text = text.replace(/ +/gm, " ");
|
||||
// text = text.replace(/(\r\n)+/g, "\r\n");
|
||||
// text = text.replace(/(\n)+/g, "\n");
|
||||
|
|
Loading…
Add table
Reference in a new issue