diff --git a/seed/challenges/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting.json b/seed/challenges/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting.json
index 4e6765d1cf9..10b5a1a5583 100644
--- a/seed/challenges/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting.json
+++ b/seed/challenges/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting.json
@@ -391,7 +391,7 @@
"assert(confirmEnding(\"Open sesame\", \"game\") === false, 'message: confirmEnding(\"Open sesame\", \"game\")
should return false.');",
"assert(confirmEnding(\"If you want to save our world, you must hurry. We dont know how much longer we can withstand the nothing\", \"mountain\") === false, 'message: confirmEnding(\"If you want to save our world, you must hurry. We dont know how much longer we can withstand the nothing\", \"mountain\")
should return false.');",
"assert(confirmEnding(\"Abstraction\", \"action\") === true, 'message: confirmEnding(\"Abstraction\", \"action\")
should return true.');",
- "assert(!/\\.endsWith\\(.*?\\)\\s*?;?/.test(code), 'message: Do not use the built-in method .endsWith()
to solve the challenge.');"
+ "assert(!(/\\.endsWith\\(.*?\\)\\s*?;?/.test(code)) && !(/\\['endsWith'\\]/.test(code)), 'message: Do not use the built-in method .endsWith()
to solve the challenge.');"
],
"type": "bonfire",
"isRequired": true,