npm / abbrev-js

Like ruby's Abbrev module
Other
164 stars 30 forks source link

fix: replace deprecated String.prototype.substr() #38

Closed CommanderRoot closed 1 year ago

CommanderRoot commented 1 year 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.

This is a new PR as I had to redo my commit because I deleted the branch after the old PR (#34) was closed

lukekarrys commented 1 year ago

Thank you!