-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace deprecated String.prototype.substr() #684
Replace deprecated String.prototype.substr() #684
Conversation
Thanks :) |
/compile amend / |
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
The app seems to break recently and this is the only change since 23 I found that could be related at all. Can we revert it? |
Did the revert fix the issue? I have re-checked the code in this PR and the only thing I could find which could result in a different output with
would fix that as well. |
The backport is still pending #704 |
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.