fixed new line and tabs not parsing properly

This commit is contained in:
Miodec 2021-01-18 16:58:54 +00:00
parent bf78ec2327
commit 94e2db14f3

View file

@ -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");