replacing double escaped new line and tab chars

This commit is contained in:
Miodec 2021-01-15 16:42:53 +00:00
parent 041d3b9d74
commit fff46bc770

View file

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