mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-27 17:27:32 +08:00
fix: issue where '\n\n' was not rendering correctly in custom text (SpaceWaffles5827) (#5370)
* fix: issue where '\n\n' was not rendering correctly in custom text * fix: prettier styling
This commit is contained in:
parent
e9a83d5a62
commit
9c652d29e8
1 changed files with 1 additions and 0 deletions
|
|
@ -268,6 +268,7 @@ function cleanUpText(): string[] {
|
|||
|
||||
if (state.replaceControlCharactersEnabled) {
|
||||
text = text.replace(/([^\\]|^)\\t/gm, "$1\t");
|
||||
text = text.replace(/\\n/g, " \n");
|
||||
text = text.replace(/([^\\]|^)\\n/gm, "$1\n");
|
||||
text = text.replace(/\\\\t/gm, "\\t");
|
||||
text = text.replace(/\\\\n/gm, "\\n");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue