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

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

Merged
jesec merged 1 commit into
vercel:mainfrom
CommanderRoot:chore/rm-deprecated-substr
Mar 21, 2022
Merged

jesec merged 1 commit into
vercel:mainfrom
CommanderRoot:chore/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.

.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated
Signed-off-by: Tobias Speicher <[email protected]>
@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