From 64ae8b769fcb44f925493a7b6c78ece74060ab90 Mon Sep 17 00:00:00 2001 From: AndrewGHC Date: Sat, 20 Aug 2016 11:33:07 +0200 Subject: [PATCH] Fixed regex test against using the .endsWith() method in challenge 'Confirm the Ending' --- .../01-front-end-development-certification/basic-bonfires.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/01-front-end-development-certification/basic-bonfires.json b/challenges/01-front-end-development-certification/basic-bonfires.json index 5b1fc120fb..5d53064509 100644 --- a/challenges/01-front-end-development-certification/basic-bonfires.json +++ b/challenges/01-front-end-development-certification/basic-bonfires.json @@ -374,7 +374,7 @@ "assert(confirmEnding(\"Open sesame\", \"same\") === true, 'message: confirmEnding(\"Open sesame\", \"same\") should return true.');", "assert(confirmEnding(\"Open sesame\", \"pen\") === false, 'message: confirmEnding(\"Open sesame\", \"pen\") 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(!/\\.endsWith\\(.*?\\)\\s*?;/.test(code), 'message: Do not use the built-in method .endsWith() to solve the challenge.');" + "assert(!/\\.endsWith\\(.*?\\)\\s*?;?/.test(code), 'message: Do not use the built-in method .endsWith() to solve the challenge.');" ], "type": "bonfire", "isRequired": true,