Skip to content

Commit b2a1fea

Browse files
chore: replace deprecated String.prototype.substr() (#458)
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
1 parent b15f137 commit b2a1fea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tasks/S3Upload/TaskOperations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export class TaskOperations {
148148
for (const matchedFile of matchedFiles) {
149149
let relativePath = matchedFile.substring(this.taskParameters.sourceFolder.length)
150150
if (relativePath.startsWith(path.sep)) {
151-
relativePath = relativePath.substr(1)
151+
relativePath = relativePath.slice(1)
152152
}
153153
let targetPath = relativePath
154154

0 commit comments

Comments
 (0)