Skip to content

Conversation

@CommanderRoot
Copy link

@CommanderRoot CommanderRoot commented Mar 24, 2022

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.

Caveats

None

Tests

Test plan

Tested on

  • Windows/Thunderbird
  • Linux/Thunderbird
  • macOS/Thunderbird

Check list

  • Code is properly documented
  • Code is properly formatted
  • Commits have been squashed
  • Documentation (manuals or wiki) has been updated or is not required

Reviewers

.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant