We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2cee8b commit ce2ec3eCopy full SHA for ce2ec3e
frontend/src/ts/modals/custom-text.ts
@@ -279,15 +279,15 @@ function cleanUpText(): string[] {
279
}
280
281
if (state.replaceControlCharactersEnabled) {
282
- text = text.replace(/([^\\]|^)\\t/gm, "$1\t");
+ text = text.replace(/\\t/g, "\t");
283
text = text.replace(/\\n/g, " \n");
284
text = text.replace(/([^\\]|^)\\n/gm, "$1\n");
285
text = text.replace(/\\\\t/gm, "\\t");
286
text = text.replace(/\\\\n/gm, "\\n");
287
288
289
text = text.replace(/ +/gm, " ");
290
- text = text.replace(/( *(\r\n|\r|\n) *)/g, "\n ");
+ text = text.replace(/( *(\r\n|\r|\n) *)/g, "\n");
291
if (state.removeFancyTypographyEnabled) {
292
text = Strings.cleanTypographySymbols(text);
293
0 commit comments