Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

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

Merged
merged 1 commit into from
Jul 21, 2022
Merged

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

merged 1 commit into from
Jul 21, 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 <[email protected]>
@CommanderRoot CommanderRoot requested a review from a team as a code owner April 5, 2022 04:33
@lukekarrys lukekarrys merged commit 6145a9e into npm:main Jul 21, 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.

2 participants