1
0
mirror of https://github.com/funamitech/mastodon synced 2024-11-25 07:37:16 +09:00
YuruToot/app/javascript/mastodon/features/emoji
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
..
__tests__ Fixed emoji detection problem to append border (#14020) 2020-06-10 21:56:14 +02:00
emoji_compressed.js Fix various typos (#17621) 2022-02-22 20:14:17 +01:00
emoji_map.json Update emoji codepoint mappings to v13.1 (#16352) 2021-06-03 16:08:07 +02:00
emoji_mart_data_light.js Compress and combine emoji data (#5229) 2017-10-06 03:42:34 +02:00
emoji_mart_search_light.js Replace deprecated String.prototype.substr() (#17949) 2022-04-04 12:19:45 -04:00
emoji_picker.js Fix emoji-mart crashing web UI on search by reverting the upgrade to 2.10.0 (#10413) 2019-03-30 01:41:35 +01:00
emoji_unicode_mapping_light.js Compress and combine emoji data (#5229) 2017-10-06 03:42:34 +02:00
emoji_utils.js Update emoji-mart to v2.1.1 (#5256) 2017-10-07 12:17:02 +02:00
emoji.js Add border to 🚲 emoji (#16035) 2021-04-13 23:43:51 +02:00
unicode_to_filename.js Compress and combine emoji data (#5229) 2017-10-06 03:42:34 +02:00
unicode_to_unified_name.js Add assets from Twemoji 13.1.0 (#16345) 2021-06-01 14:35:49 +02:00