mirror of
https://github.com/dorny/test-reporter.git
synced 2026-02-02 19:25:22 -08:00
Fix EOL issues - remove all \r from annotation message
This commit is contained in:
@@ -30,3 +30,7 @@ export function table(headers: ToString[], align: ToString[], ...rows: ToString[
|
||||
export function tableEscape(content: ToString): string {
|
||||
return content.toString().replace('|', '\\|')
|
||||
}
|
||||
|
||||
export function fixEol(text?: string): string {
|
||||
return text?.replace(/\r/g, '') ?? ''
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user