chore(deps-dev): bump eslint-plugin-unicorn from 59.0.1 to 60.0.0 (#19662)
* chore(deps-dev): bump eslint-plugin-unicorn from 59.0.1 to 60.0.0 --- updated-dependencies: - dependency-name: eslint-plugin-unicorn dependency-version: 60.0.0 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * refactor: replace reverse() with toReversed() for improved readability * chore: update packageManager version to pnpm@10.13.1 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
@@ -50,7 +50,7 @@ export function parseDuration(timeStr: string) {
|
||||
const clean = timeStr.trim().replaceAll(/[^\d:]/g, '');
|
||||
return clean
|
||||
.split(':')
|
||||
.reverse()
|
||||
.toReversed()
|
||||
.reduce((total, part, idx) => {
|
||||
const n = Number(part);
|
||||
if (Number.isNaN(n)) {
|
||||
|
||||
Reference in New Issue
Block a user