From 84c819f13421960b838412bb1c8942f27a32fff7 Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Fri, 9 Aug 2024 21:02:03 -0500 Subject: [PATCH] I'm tired of this... --- main.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cjs b/main.cjs index 4913078..ebe8d0d 100644 --- a/main.cjs +++ b/main.cjs @@ -188,7 +188,7 @@ function getMatchingPhrase(inputString, targetCharacter) { const sMap = { '$': 's', '5': 's', 'š': 's', 'ß': 's', 'ʂ': 's', '𝔲': 'u', '𝔰': 's'}; return str.split('').map(char => sMap[char] || char).join(''); } - let checkString = message.content.toLowerCase().normalize("NFD"); + let checkString = message.content.toLowerCase().normalize("NFKC"); let checkArray = ["ussy", "ussies", "uthy", "yssu", "suuy"]; function checkLoop(message, content) { console.log("Checking " + content + "...");