MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / removeAnsiEscapeCodes

Function removeAnsiEscapeCodes

src/kernels/execution/helpers.ts:856–862  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

854);
855
856function removeAnsiEscapeCodes(str: string): string {
857 if (str) {
858 str = str.replace(CONTROL_SEQUENCES, '');
859 }
860
861 return str.trim();
862}
863
864export function findErrorLocation(traceback: string[], cell: NotebookCell) {
865 const cellRegex = /Cell\s+In\s*\[(?<executionCount>\d+)\],\s*line (?<lineNumber>\d+).*/;

Callers 1

findErrorLocationFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected