We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa147da commit 7aa37ffCopy full SHA for 7aa37ff
lib/colors.js
@@ -125,7 +125,9 @@ function applyStyle() {
125
var code = ansiStyles[nestedStyles[i]];
126
str = code.open + str.replace(code.closeRe, code.open) + code.close;
127
if (newLinesPresent) {
128
- str = str.replace(newLineRegex, code.close + '\n' + code.open);
+ str = str.replace(newLineRegex, function(match) {
129
+ return code.close + match + code.open;
130
+ });
131
}
132
133
0 commit comments