1
0
Fork 0
forked from fedi/mastodon
mastodon/app/javascript
CommanderRoot 0ec695e036
Replace deprecated String.prototype.substr() (#17949)
* Replace deprecated String.prototype.substr()

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

* Change String.prototype.substring() to String.prototype.slice()

.substring() and .slice() work very similary but .slice() is a bit faster and stricter

* Add ESLint rule to forbid usage of .substr and .substring

.substr() is deprecated and .substring() is very similar to .slice() so better to use .slice() at all times

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
2022-04-04 12:19:45 -04:00
..
fonts
images Fix keybase config serializer (#13742) 2020-05-12 15:28:29 +02:00
mastodon Replace deprecated String.prototype.substr() (#17949) 2022-04-04 12:19:45 -04:00
packs Fix edge case where settings/admin page sidebar would be incorrectly hidden (#17580) 2022-02-16 21:44:19 +01:00
styles Fix regression of status colors in actions modal in web UI (#17903) 2022-03-29 22:55:37 +02:00