@@ -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, '&')
152- // .replace(/</g, '<')
153- // .replace(/>/g, '>')
154- // .replace(/"/g, '"')
155- // .replace(/'/g, ''')
156- // .replace(/`/g, '`')
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, '&' )
152+ . replace ( / < / g, '<' )
153+ . replace ( / > / g, '>' )
154+ . replace ( / " / g, '"' )
155+ . replace ( / ' / g, ''' )
156+ . replace ( / ` / g, '`' )
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
167167function getStatusEmoji ( status : MatlabTestStatus ) : string {
168168 switch ( status ) {
0 commit comments