thread-loader
thread-loader copied to clipboard
chrore: replace deprecated String.prototype.substr()
This PR contains a:
- [x] bugfix
- [ ] new feature
- [x] code refactor
- [ ] test update
- [ ] typo fix
- [ ] metadata update
Motivation / Use-Case
String.prototype.substr() is deprecated so we replace it with functions which aren't. This change matches the current upstream. .substr() probably isn't going away anytime soon but the change is trivial so it doesn't hurt to do it.
Breaking Changes
None