1
0
Fork 0
mirror of https://github.com/dorny/test-reporter.git synced 2026-03-22 07:52:14 +01:00

Use String.substring() function instead of the deprecated String.substr()

This commit is contained in:
Jozef Izso 2025-12-29 15:06:16 +01:00
parent ff2d13cc36
commit 17c900ba4e
Failed to extract signature
9 changed files with 12 additions and 12 deletions

View file

@ -36,7 +36,7 @@ export function ellipsis(text: string, maxLength: number): string {
return text
}
return text.substr(0, maxLength - 3) + '...'
return text.substring(0, maxLength - 3) + '...'
}
export function formatTime(ms: number): string {

View file

@ -34,6 +34,6 @@ export function getBasePath(path: string, trackedFiles: string[]): string | unde
return undefined
}
const base = path.substr(0, path.length - max.length)
const base = path.substring(0, path.length - max.length)
return base
}