Skip to content

Replace deprecated String.prototype.substr() - #50

Merged
UlisesGascon merged 1 commit into
jshttp:masterfrom
CommanderRoot:rm-deprecated-substr
Mar 24, 2025
Merged

UlisesGascon merged 1 commit into
jshttp:masterfrom
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.

@ejcheng ejcheng added the pr label Mar 24, 2022
@UlisesGascon UlisesGascon mentioned this pull request Mar 23, 2025
56 of 68 tasks
@bjohansebas

Copy link
Copy Markdown
Member

lol, this is so old that there was no CI. Maybe you want to rebase to trigger the CI.

.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated
Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
@CommanderRoot

Copy link
Copy Markdown
Contributor Author

I have rebased the changes on current master as requested

@UlisesGascon UlisesGascon self-assigned this Mar 24, 2025
@UlisesGascon
UlisesGascon merged commit b4e746d into jshttp:master Mar 24, 2025
@UlisesGascon UlisesGascon mentioned this pull request Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants