MithrilJS / ospec

Noiseless testing framework
MIT License
48 stars 13 forks source link

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

Closed CommanderRoot closed 2 years ago

CommanderRoot commented 2 years ago

Description

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.

Motivation and Context

How Has This Been Tested?

I tested the return of the statement to make sure it's still the same

Types of changes

Checklist:

pygy commented 2 years ago

Merging. Thanks for the PR @CommanderRoot!