From 153fd31f04683df0484846d59078f81983e6f75e Mon Sep 17 00:00:00 2001 From: Eric Leung Date: Thu, 7 Apr 2016 08:37:28 -0700 Subject: [PATCH] Loosen RegEx to accept multi-line comments as well --- .../01-front-end-development-certification/bootstrap.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/01-front-end-development-certification/bootstrap.json b/challenges/01-front-end-development-certification/bootstrap.json index 06578ee939..55ef24f68a 100644 --- a/challenges/01-front-end-development-certification/bootstrap.json +++ b/challenges/01-front-end-development-certification/bootstrap.json @@ -2248,7 +2248,7 @@ ], "tests": [ "assert(code.match(/^\\s*.*this line)).*this line.*-->/gi), 'message: Your comment should have the text Only change code above this line.');", + "assert(code.match(/.*this line))\\s*.*this line.*\\s*-->/gi), 'message: Your comment should have the text Only change code above this line.');", "assert(code.match(/-->.*\\n+.+/g), 'message: Be sure to close your comment with -->.');", "assert(code.match(//g).length, 'message: You should have the same number of comment openers and closers.');" ],