Skip to content

Conversation

CommanderRoot
Copy link

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.

@dummdidumm dummdidumm marked this pull request as draft April 6, 2022 12:34
@dummdidumm
Copy link
Member

dummdidumm commented Apr 6, 2022

Converting this to a draft because I'm not sure if I would want to do this just because substr is deprecated (I don't think it will ever be removed honestly).

.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 force-pushed the rm-deprecated-substr branch from 10e2c30 to 83c52af Compare April 6, 2022 19:03
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