Files
zulip/static/js
Steve Howell 6050a5bdd6 markdown: Build the emoticon regexes up front.
There are six emoticon regexes that allow us
make translations such as ":)" to ":slight_smile".

We now build these as soon as we read in the
JSON data, instead of rebuilding them every time
we convert a message to markdown.

It's possible that we should just hardcode this
data:

    [
        { regex: /(\:\))/g, replacement_text: ':slight_smile:' },
        { regex: /(\(\:)/g, replacement_text: ':slight_smile:' },
        { regex: /(\:\/)/g, replacement_text: '😕' },
        { regex: /(<3)/g, replacement_text: '❤️' },
        { regex: /(\:\()/g, replacement_text: ':frown:' },
        { regex: /(\:\|)/g, replacement_text: '😑' }
    ]

OTOH I suppose it's possible that some server
admins will want to modify emoji_codes.json to
have custom emoticons.
2020-02-15 12:26:26 -08:00
..
2020-02-15 12:20:20 -08:00
2019-12-30 09:50:22 -08:00
2020-02-15 12:20:20 -08:00
2020-02-04 12:22:03 -08:00
2020-02-15 12:20:20 -08:00
2020-02-15 12:20:20 -08:00
2019-10-25 13:51:21 -07:00
2020-02-15 12:20:20 -08:00
2020-02-15 12:20:20 -08:00
2020-02-04 12:22:03 -08:00
2020-02-15 12:20:20 -08:00
2020-02-15 12:20:20 -08:00
2020-02-04 12:22:03 -08:00
2020-02-15 12:20:20 -08:00
2020-02-15 12:20:20 -08:00
2020-02-15 12:20:20 -08:00
2019-10-25 13:51:21 -07:00
2020-02-15 12:20:20 -08:00
2020-02-15 12:20:20 -08:00
2020-02-15 12:20:20 -08:00
2020-02-15 12:20:20 -08:00
2020-02-15 12:20:20 -08:00
2020-02-15 12:20:20 -08:00
2020-02-15 12:20:20 -08:00
2020-02-10 15:57:20 -08:00
2020-02-15 12:20:20 -08:00
2020-02-15 12:20:20 -08:00
2019-10-25 13:51:21 -07:00
2020-02-12 10:39:01 -08:00
2020-02-05 13:04:16 -08:00
2020-02-15 12:20:20 -08:00
2020-02-15 12:20:20 -08:00