aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.js4
1 files 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();
}
})