pqina / tick

⏱ A counter component to render different countdown styles with
MIT License
83 stars 8 forks source link

refactor: replace deprecated String.prototype.substr() #5

Closed CommanderRoot closed 1 year ago

CommanderRoot commented 2 years ago

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.

rikschennink commented 1 year ago

thanks for the heads-up, I decided to replace them with substring instead