I'm tired of this...

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2024-08-09 20:32:16 -05:00
parent af120bb220
commit 91e1595595

View File

@ -185,7 +185,7 @@ function getMatchingPhrase(inputString, targetCharacter) {
global.clenseDegeneracy = function clenseDegeneracy(message) { global.clenseDegeneracy = function clenseDegeneracy(message) {
function normalizeString(str) { function normalizeString(str) {
const sMap = { '$': 's', '5': 's', 'š': 's', 'ß': 's'}; const sMap = { '$': 's', '5': 's', 'š': 's', 'ß': 's', 'ʂ': 's'};
return str.split('').map(char => sMap[char] || char).join(''); return str.split('').map(char => sMap[char] || char).join('');
} }
let checkString = normalizeString(message.content.toLowerCase()); let checkString = normalizeString(message.content.toLowerCase());