mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Make manual emoji text entry case-insensitive (#2353)
This commit is contained in:
committed by
Scott Nonnenberg
parent
494806b314
commit
1a76f1dae3
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user