Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

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

Merged
merged 1 commit into from Apr 5, 2022
Merged

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

merged 1 commit into from Apr 5, 2022

Conversation

CommanderRoot
Copy link
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.

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

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
@CommanderRoot CommanderRoot requested a review from a team as a code owner April 5, 2022 04:35
@wraithgar wraithgar merged commit 43893b6 into npm:main Apr 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants