From 1a76f1dae3e324e248685d3ae3cff0b4e1121d43 Mon Sep 17 00:00:00 2001 From: Buck Doyle Date: Mon, 8 Apr 2019 09:57:21 -0700 Subject: [PATCH] Make manual emoji text entry case-insensitive (#2353) --- ts/util/emoji.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/util/emoji.ts b/ts/util/emoji.ts index 1242e44f2..3d9377b7f 100644 --- a/ts/util/emoji.ts +++ b/ts/util/emoji.ts @@ -26,7 +26,7 @@ export function findImage(value: string, variation?: string) { export function replaceColons(str: string) { return str.replace(instance.rx_colons, m => { - const name = m.substr(1, m.length - 2); + const name = m.substr(1, m.length - 2).toLowerCase(); const code = instance.map.colons[name]; if (code) { return instance.data[code][0][0];