Skip to content

chore: replace deprecated String.prototype.substr()#83

Open
CommanderRoot wants to merge 1 commit intoaws:masterfrom
CommanderRoot:refactor/rm-deprecated-substr
Open

chore: replace deprecated String.prototype.substr()#83
CommanderRoot wants to merge 1 commit intoaws:masterfrom
CommanderRoot:refactor/rm-deprecated-substr

Conversation

@CommanderRoot
Copy link

String.prototype.substr() is deprecated so we replace it with String.prototype.slice() which works similarily but isn't deprecated.
.substr() probably isn't going away anytime soon but the change is trivial so it doesn't hurt to do it.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

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

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant