Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/web/src/components/files/FilePreviewPanel.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ Third}`;
output_type: "error",
traceback: [
"\u001b[31mTraceback (most recent call last):\n\u001b[0m",
"\u001b[32mCell In[3], line 1\n----> 1 fail()\n\u001b[0m\u001b[39m",
"\u001b[38:2::255:0:0mCell In[3], line 1\n----> 1 fail()\n\u001b[0m\u001b[39m",
"\u001b[31mValueError: preview proof\u001b[0m",
"final entry",
],
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/terminalOutput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ export function terminalOutputSpans(
return spans;
}

const SGR_PATTERN = new RegExp(`${ESC}\\[[0-9;]*m`, "gu");
const SGR_PATTERN = new RegExp(`${ESC}\\[[0-9;:]*m`, "gu");

export function terminalOutputPlainText(text: string): string {
return text.replace(SGR_PATTERN, "");
Expand Down
Loading