* chore: replace deprecated String.prototype.substr()
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated
Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
* refactor: add prefer slice lint rule and fix errors
Co-authored-by: erezrokah <erezrokah@users.noreply.github.com>