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