mirror of
https://github.com/dorny/test-reporter.git
synced 2026-02-03 19:55:22 -08:00
Enforce Check Run API limits
This commit is contained in:
@@ -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) + '...'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user