webpack-contrib / imports-loader

Imports Loader
MIT License
520 stars 63 forks source link

chore: replace deprecated String.prototype.substr() #125

Closed CommanderRoot closed 2 years ago

CommanderRoot commented 2 years ago

This PR contains a:

Motivation / Use-Case

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.

Breaking Changes

None

Additional Info

codecov[bot] commented 2 years ago

Codecov Report

Merging #125 (a180a04) into master (928a35f) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #125   +/-   ##
=======================================
  Coverage   92.03%   92.03%           
=======================================
  Files           3        3           
  Lines         226      226           
  Branches       86       86           
=======================================
  Hits          208      208           
  Misses         12       12           
  Partials        6        6           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 928a35f...a180a04. Read the comment docs.