language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

[chore] replace deprecated String.prototype.substr()

Open CommanderRoot opened this issue 3 years ago • 1 comments

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.

CommanderRoot avatar Apr 06 '22 12:04 CommanderRoot

Converting this to a draft because I'm not sure if I would want to do this just because substr is deprecated (I don't think it will ever be removed honestly).

dummdidumm avatar Apr 06 '22 12:04 dummdidumm