fix: replace deprecated String.prototype.substr() (#445)
fix: replace deprecated String.prototype.substr() (#445)

.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated

Signed-off-by: Tobias Speicher <0bf48b1b307ef620053f01d201166f9ed9f81d78@gmail.com>
npm/node-semver