nebular
nebular copied to clipboard
refactor: replace deprecated String.prototype.substr()
Please read and mark the following check list before creating a pull request:
- [x] I read and followed the CONTRIBUTING.md guide.
Short description of what this resolves:
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.