diff --git a/main.cjs b/main.cjs index bab65e3..68b97d7 100644 --- a/main.cjs +++ b/main.cjs @@ -193,7 +193,7 @@ function getMatchingPhrase(inputString, targetCharacter) { } checkLoop(checkString); console.log(checkString); - checkString.replace(/[^a-zA-Z0-9]/g, ''); + checkString = checkString.replace(/[^a-zA-Z0-9]/g, ''); console.log(checkString); checkLoop(checkString); }