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

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

Merged
merged 1 commit into from
Mar 21, 2022
Merged

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

merged 1 commit into from
Mar 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 <rootcommander@gmail.com>
@robertsLando robertsLando requested a review from jesec March 21, 2022 08:13
@jesec jesec merged commit edfcc7b into vercel:main Mar 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.

3 participants