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

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

Merged
merged 1 commit into from
Mar 28, 2022
Merged

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

merged 1 commit into from
Mar 28, 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 <[email protected]>
Copy link
Contributor

@haltman-at haltman-at left a comment

Choose a reason for hiding this comment

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

Thanks for this! (Now can we get a second reviewer on this?)

Copy link
Member

@cds-amal cds-amal left a comment

Choose a reason for hiding this comment

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

LGTM

@eggplantzzz
Copy link
Contributor

Thanks @CommanderRoot!

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.

4 participants