Files
Mastodon/app/javascript/mastodon
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
..
2022-03-06 22:51:40 +01:00
2022-03-29 10:51:09 +09:00
2019-12-19 07:39:08 +09:00
2021-06-27 22:31:28 +02:00
2017-09-30 04:29:56 +02:00
2020-11-23 17:35:14 +01:00