mirror of
https://github.com/dorny/test-reporter.git
synced 2026-02-03 03:35:22 -08:00
Use String.substring() function instead of the deprecated String.substr()
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user