chinwagsocial/app/javascript/mastodon/features/status/components
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
..
action_bar.js Chore: Disable menu items for editing statuses in web UI (#17497) 2022-02-10 15:28:53 +01:00
card.js Replace deprecated String.prototype.substr() (#17949) 2022-04-04 12:19:45 -04:00
detailed_status.js Add edit history to web UI (#17390) 2022-02-09 01:17:07 +01:00