Skip to content

Commit 8bf52cc

Browse files
committed
format diagnostics
1 parent d6d9106 commit 8bf52cc

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

src/testResultsSummary.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -145,24 +145,24 @@ function generateTestCaseRow(testCase: MatlabTestCase): string {
145145
</tr>`;
146146
}
147147

148-
// function formatDiagnosticReport(report: string): string {
149-
// return report
150-
// // HTML special characters
151-
// .replace(/&/g, '&amp;')
152-
// .replace(/</g, '&lt;')
153-
// .replace(/>/g, '&gt;')
154-
// .replace(/"/g, '&quot;')
155-
// .replace(/'/g, '&#039;')
156-
// .replace(/`/g, '&#096;')
157-
// // Path separators for all OS
158-
// .replace(/\\/g, '\\\\') // Windows backslash
159-
// .replace(/\//g, '/') // Unix forward slash
160-
// // Preserve MATLAB formatting
161-
// .replace(/\r\n/g, '\n') // Windows line endings
162-
// .replace(/\r/g, '\n') // Mac old-style line endings
163-
// .replace(/\t/g, ' ') // Tabs to spaces
164-
// .trim();
165-
// }
148+
function formatDiagnosticReport(report: string): string {
149+
return report
150+
// HTML special characters
151+
.replace(/&/g, '&amp;')
152+
.replace(/</g, '&lt;')
153+
.replace(/>/g, '&gt;')
154+
.replace(/"/g, '&quot;')
155+
.replace(/'/g, '&#039;')
156+
.replace(/`/g, '&#096;')
157+
// Path separators for all OS
158+
.replace(/\\/g, '\\\\') // Windows backslash
159+
.replace(/\//g, '/') // Unix forward slash
160+
// Preserve MATLAB formatting
161+
.replace(/\r\n/g, '\n') // Windows line endings
162+
.replace(/\r/g, '\n') // Mac old-style line endings
163+
.replace(/\t/g, ' ') // Tabs to spaces
164+
.trim();
165+
}
166166

167167
function getStatusEmoji(status: MatlabTestStatus): string {
168168
switch (status) {

0 commit comments

Comments
 (0)