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