Spam filter escape key issue

hi. doing the spam filter project. and using the jaws for windows screen reader. cannot see if any hidden characters or hidden trailling spaces. using visual studio code. and using google chrome for the fcc editor. now on step 29. i will paste the link to the step. so, it is not liking the escape characters and have written the code, did try researching on google. almost similar or same code. so what am i doing wrong? what is fcc expecting for this step. give me technical advice on how to get this to pass. will paste the code below and the link to the step and the error message and test.(https://www.freecodecamp.org/learn/full-stack-developer/workshop-spam-filter/step-29)

thank you.(https://www.freecodecamp.org/learn/full-stack-developer/workshop-spam-filter/step-29)

marvin.(https://www.freecodecamp.org/learn/full-stack-developer/workshop-spam-filter/step-29)

JavaScript:(https://www.freecodecamp.org/learn/full-stack-developer/workshop-spam-filter/step-29)

const helpRegex = /help/i;(https://www.freecodecamp.org/learn/full-stack-developer/workshop-spam-filter/step-29)

const dollarRegex = /[0-9]+\s*(hundred|thousand|million|billion)?\s+dollars/i;(https://www.freecodecamp.org/learn/full-stack-developer/workshop-spam-filter/step-29)

Step 29:(https://www.freecodecamp.org/learn/full-stack-developer/workshop-spam-filter/step-29)

const freeRegex = /(?:\s|^)fr[e3][e3] m[o0]n[e3]y(?:\s|$)/i;(https://www.freecodecamp.org/learn/full-stack-developer/workshop-spam-filter/step-29)

const stockRegex = /[s5][t7][o0][c\{\[\(]k [a@4]l[e3]r[t7]/i;(https://www.freecodecamp.org/learn/full-stack-developer/workshop-spam-filter/step-29)

const denyList = [helpRegex, dollarRegex, freeRegex, stockRegex];(https://www.freecodecamp.org/learn/full-stack-developer/workshop-spam-filter/step-29)

function isSpam(msg) {(https://www.freecodecamp.org/learn/full-stack-developer/workshop-spam-filter/step-29)

return denyList.some(regex => regex.test(msg));(https://www.freecodecamp.org/learn/full-stack-developer/workshop-spam-filter/step-29)

}

Step 29:(https://www.freecodecamp.org/learn/full-stack-developer/workshop-spam-filter/step-29)

b

Please do not turn every part of your post into links to the Step. Please use the code formatting tool.

The code is not readable, we are unable to help

hi, okay doing step 30. now trying to do the regex boundry words. but it is not passing, what regex for the boundry is free code camp vallidator looking for. will post my code and the error messages and will format it properly.

doing this now.

javascript:

const helpRegex = /\bhelp\b/i;

const dollarRegex = /\b[0-9]+\s*(hundred|thousand|million|billion)?\s+dollars\b/i;

const freeRegex = /\bfr[e3][e3] m[o0]n[e3]y\b/i;

const stockRegex = /(?:\s|^)(?:[s5][t7][o0][c{[(]k)(?:\s|$)/i;

const denyList = [helpRegex, dollarRegex, freeRegex, stockRegex];

function isSpam(message) {

for (let i = 0; i < denyList.length; i++) {

if (denyList\[i\].test(message)) {

  return true;

}

}

return false;

}

const testMessages = [

“Can you help me?”,

“I just won 1000 dollars!”,

“Get free money now”,

“Check out this stock tip”,

“Hello friend”

test messages:

];

test messages:

// running tests
3. Your stockRegex should use a second non-capturing group.
10. Your stockRegex should not match stock alert-management.
// tests completed

testMessages.forEach(msg => {

isSpam(msg);

});

please do not add other stuff inside the code, it makes it impossible to know the correct flow