mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-15 11:07:36 +08:00
replacing double escaped new line and tab chars
This commit is contained in:
parent
041d3b9d74
commit
fff46bc770
1 changed files with 2 additions and 1 deletions
|
@ -3955,7 +3955,8 @@ $("#customTextPopup .button").click(() => {
|
|||
let text = $("#customTextPopup textarea").val();
|
||||
text = text.trim();
|
||||
// text = text.replace(/[\r]/gm, " ");
|
||||
text = text.replace(/\t/gm, "\t");
|
||||
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