refactor: Replace deprecated substr with substring (#8644)

This commit is contained in:
Corey
2023-06-20 06:07:10 -04:00
committed by GitHub
parent 9674d4a2c0
commit 3710da7379
4 changed files with 32 additions and 57 deletions

View File

@@ -1,6 +1,6 @@
const pkg = require('./package.json');
const version = parseFloat(process.version.substr(1));
const version = parseFloat(process.version.substring(1));
const minimum = parseFloat(pkg.engines.node.match(/\d+/g).join('.'));
module.exports = function () {