Skip to content

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

Merged
stephanmiehe merged 1 commit intogithub:masterfrom
CommanderRoot:rm-deprecated-substr
May 14, 2022
Merged

refactor: replace deprecated String.prototype.substr()#38
stephanmiehe merged 1 commit intogithub:masterfrom
CommanderRoot:rm-deprecated-substr

Conversation

@CommanderRoot
Copy link
Contributor

String.prototype.substr() is deprecated so we replace it with String.prototype.substring() 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 .substring() which works similarily but isn't deprecated
Signed-off-by: Tobias Speicher <[email protected]>
@stephanmiehe stephanmiehe merged commit 93b20df into github:master May 14, 2022
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