Skip to content
This repository was archived by the owner on Sep 18, 2023. It is now read-only.

refactor: replace deprecated String.prototype.substr() #42

Merged
merged 1 commit into from
Mar 24, 2022
Merged

refactor: replace deprecated String.prototype.substr() #42

merged 1 commit into from
Mar 24, 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>
Copy link
Contributor

@koddsson koddsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! Thank you 👍🏻

@koddsson koddsson merged commit 22467bd into github:main Mar 24, 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