From d61476d302fddbfb89a6369fbba9579a2aeb6e8c Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 5 Dec 2017 22:45:55 +0100 Subject: [PATCH] Added common smileys + some emojis --- view/vue/container/inbox.vue | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/view/vue/container/inbox.vue b/view/vue/container/inbox.vue index f45381c..c591584 100644 --- a/view/vue/container/inbox.vue +++ b/view/vue/container/inbox.vue @@ -58,6 +58,24 @@ export default { /* (3) Manage emojis ---------------------------------------------------------*/ + /* (1) Smileys */ + msg = msg.replace(/:D/g, '😃'); + msg = msg.replace(/:\)/g, '🙂'); + msg = msg.replace(/:B/g, '😎'); + msg = msg.replace(/:3/g, '😗'); + msg = msg.replace(/;\)/g, '😉'); + msg = msg.replace(/:P/g, '😋'); + msg = msg.replace(/;P/g, '😜'); + msg = msg.replace(/xD/g, '😆'); + msg = msg.replace(/:O/ig, '😲'); + msg = msg.replace(/:S/g, '😖'); + msg = msg.replace(/\^\^/g, '😊'); + + /* (2) Emojis */ + msg = msg.replace(/:poop:/g, '💩'); + msg = msg.replace(/:fuck:/g, '🖕'); + msg = msg.replace(/\+1/g, '👍'); + msg = msg.replace(/-1/g, '👎'); return msg; }