Replace deprecated String.prototype.substr() (#1319)

String.prototype.substr() is deprecated (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr) so we replace it with slice() which works similarily but isn't deprecated.
Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
This commit is contained in:
CommanderRoot 2022-02-27 04:45:44 +01:00 committed by GitHub
parent 0fd618d875
commit c963950ec5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ if (!versionTag) {
);
}
const sha = process.env.GITSHA ? `_${process.env.GITSHA.substr(0, 7)}` : '';
const sha = process.env.GITSHA ? `_${process.env.GITSHA.slice(0, 7)}` : '';
const TAG =
(versionTag ||