Skip to content

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

Merged
wraithgar merged 2 commits intonpm:mainfrom
CommanderRoot:rm-deprecated-substr
Apr 5, 2022
Merged

fix: replace deprecated String.prototype.substr()#155
wraithgar merged 2 commits intonpm:mainfrom
CommanderRoot:rm-deprecated-substr

Conversation

@CommanderRoot
Copy link
Copy Markdown
Contributor

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.

CommanderRoot and others added 2 commits April 5, 2022 07:05
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
@wraithgar wraithgar requested a review from a team as a code owner April 5, 2022 17:04
@wraithgar wraithgar merged commit e3a5d18 into npm:main Apr 5, 2022
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.

2 participants