FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

refactor: replace deprecated String.prototype.substr() by CommanderRoot · Pull Request #2036 · browserify/browserify · GitHub

Repository navigation

refactor: replace deprecated String.prototype.substr() - #2036

Merged
goto-bus-stop merged 1 commit into
browserify:masterfrom
CommanderRoot:refactor/rm-deprecated-substr
Mar 28, 2022
Merged

goto-bus-stop merged 1 commit into
browserify:masterfrom
CommanderRoot:refactor/rm-deprecated-substr

Conversation

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>
goto-bus-stop merged commit 80d8c1e into browserify:master Mar 28, 2022

Copy link
Copy Markdown

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.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL