EDDN icon indicating copy to clipboard operation
EDDN copied to clipboard

refactor: replace deprecated String.prototype.substr()

Open CommanderRoot opened this issue 2 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 Mar 22 '22 09:03 CommanderRoot

This looks trivially correct.

I'm going to guess we could do with running the entire thing through a linter, not to mention upgrading/testing the various third-party bits that are used.

Athanasius avatar Mar 22 '22 09:03 Athanasius