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 is a new PR as I had to redo my commit because I deleted the branch after the old PR (#34) was closed
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 is a new PR as I had to redo my commit because I deleted the branch after the old PR (#34) was closed