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
koddsson merged 1 commit into
github:mainfrom
CommanderRoot:rm-deprecated-substr
Mar 24, 2022
Merged

refactor: replace deprecated String.prototype.substr()#42
koddsson merged 1 commit into
github:mainfrom
CommanderRoot: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 <rootcommander@gmail.com>

@koddsson koddsson left a comment

Copy link
Copy Markdown
Contributor

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