[FIX] mail_bot: do not consider numbers as an emoji
Better stick on pure emojis.
This commit is contained in:
@@ -72,9 +72,6 @@ Aaaaand that's it! Enjoy discovering Odoo!") % (discuss_href, discuss_src, chatt
|
||||
def _body_contains_emoji(self, body):
|
||||
# coming from https://unicode.org/emoji/charts/full-emoji-list.html
|
||||
emoji_list = itertools.chain(
|
||||
range(0x0030, 0x3a),
|
||||
range(0x2194, 0x219a),
|
||||
range(0x21A9, 0x21ab),
|
||||
range(0x231A, 0x231c),
|
||||
range(0x23E9, 0x23f4),
|
||||
range(0x23F8, 0x23fb),
|
||||
@@ -192,8 +189,8 @@ Aaaaand that's it! Enjoy discovering Odoo!") % (discuss_href, discuss_src, chatt
|
||||
range(0x1F9C1, 0x1f9c3),
|
||||
range(0x1F9D0, 0x1f9e7),
|
||||
range(0x1F9E7, 0x1fa00),
|
||||
[0x23, 0x2a, 0xa9, 0xae, 0x203c, 0x2049, 0x2122, 0x2139, 0x2328, 0x23cf, 0x24c2, 0x25b6, 0x25c0, 0x260e, 0x2611,
|
||||
0x2618, 0x261d, 0x2620, 0x2626, 0x262a, 0x2640, 0x2642, 0x2663, 0x2668, 0x267b, 0x2699, 0x26c8, 0x26ce, 0x26cf,
|
||||
[0x2328, 0x23cf, 0x24c2, 0x25b6, 0x25c0, 0x260e, 0x2611, 0x2618, 0x261d, 0x2620, 0x2626,
|
||||
0x262a, 0x2640, 0x2642, 0x2663, 0x2668, 0x267b, 0x2699, 0x26c8, 0x26ce, 0x26cf,
|
||||
0x26d1, 0x26fd, 0x2702, 0x2705, 0x270f, 0x2712, 0x2714, 0x2716, 0x271d, 0x2721, 0x2728, 0x2744, 0x2747, 0x274c,
|
||||
0x274e, 0x2757, 0x27a1, 0x27b0, 0x27bf, 0x2b50, 0x2b55, 0x3030, 0x303d, 0x3297, 0x3299, 0x1f004, 0x1f0cf, 0x1f17e,
|
||||
0x1f17f, 0x1f18e, 0x1f21a, 0x1f22f, 0x1f321, 0x1f336, 0x1f37d, 0x1f3c5, 0x1f3f7, 0x1f43f, 0x1f440, 0x1f441, 0x1f4f8,
|
||||
|
||||
Reference in New Issue
Block a user