nextcloud-filelink icon indicating copy to clipboard operation
nextcloud-filelink copied to clipboard

Replace deprecated String.prototype.substr()

Open CommanderRoot opened this issue 3 years ago • 0 comments

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
  • [x] Commits have been squashed
  • [ ] Documentation (manuals or wiki) has been updated or is not required

Reviewers

CommanderRoot avatar Mar 24 '22 16:03 CommanderRoot