From 4706f6c1ada033db9d28e815739ab3e096c98091 Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Wed, 20 Oct 2021 22:27:55 +0530 Subject: language changes --- src/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index 43a5881..ab33c28 100644 --- a/src/main.js +++ b/src/main.js @@ -55,8 +55,8 @@ function parseCasualMessage(message) { if (!casualMessages.hasOwnProperty(parsedMessage)) { let currentKey; parsedMessage.split(" ").forEach((lang) => { - if(casualMessages.hasOwnProperty(lang)) { - currentKey = lang; + if(casualMessages.hasOwnProperty(lang.toString().trim())) { + currentKey = lang.toString().trim(); } }) -- cgit v1.2.3