mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-16 14:27:10 +01:00
Fix EOL issues - remove all \r from annotation message
This commit is contained in:
parent
4197e7a327
commit
760c090915
7 changed files with 20 additions and 13 deletions
|
|
@ -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, '') ?? ''
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue