mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-16 14:27:10 +01:00
Enforce Check Run API limits
This commit is contained in:
parent
fdd3509024
commit
7af0073fa3
5 changed files with 49 additions and 11 deletions
|
|
@ -34,3 +34,11 @@ export function tableEscape(content: ToString): string {
|
|||
export function fixEol(text?: string): string {
|
||||
return text?.replace(/\r/g, '') ?? ''
|
||||
}
|
||||
|
||||
export function ellipsis(text: string, maxLength: number): string {
|
||||
if (text.length <= maxLength) {
|
||||
return text
|
||||
}
|
||||
|
||||
return text.substr(0, maxLength - 3) + '...'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue