Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
emoticon_translation: Update comment for precise object length.
aryanshridharf19c7a2f690c
diff --git a/static/shared/js/emoji.js b/static/shared/js/emoji.jsindex 2ef7fbeabae..98bb7491d33 100644--- a/static/shared/js/emoji.js+++ b/static/shared/js/emoji.js@@ -39,10 +39,11 @@ function build_emoticon_translations() {{ regex: /(\:\/)/g, replacement_text: ':confused:' },{ regex: /(<3)/g, replacement_text: ':heart:' },{ regex: /(\:\()/g, replacement_text: ':frown:' },- { regex: /(\:\|)/g, replacement_text: ':expressionless:' }+ { regex: /(\:\|)/g, replacement_text: ':expressionless:' },+ ....]- We build up this list of ~6 emoticon translations+ We build up this list of ~12 emoticon translationseven if page_params.translate_emoticons is false, sincethat setting can be flipped via live update events.On the other hand, we assume that emoticon_conversions