From 82605bbcb06f7a76be2596acd7c2da7ea6c41a8b Mon Sep 17 00:00:00 2001 From: Joel Bentley Date: Sun, 20 Sep 2015 16:48:09 -0400 Subject: [PATCH 1/2] Fix test on Waypoint Use Comments to Clarify Code --- seed/challenges/bootstrap.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed/challenges/bootstrap.json b/seed/challenges/bootstrap.json index fb4f864474b..9c6d924f414 100644 --- a/seed/challenges/bootstrap.json +++ b/seed/challenges/bootstrap.json @@ -2141,7 +2141,7 @@ "tests": [ "assert(editor.match(//g) && editor.match(/-->/g).length > 0, 'Be sure to close your comment with -->.')" + "assert(editor.match(/-->.*\\n.+/g), 'Be sure to close your comment with -->.')" ], "challengeSeed": [ "
", From a75db9c7f2f9490424de7d92e6a93f711a34c35f Mon Sep 17 00:00:00 2001 From: Joel Bentley Date: Wed, 23 Sep 2015 18:21:16 -0400 Subject: [PATCH 2/2] Modify test to allow for blank line after comment --- seed/challenges/bootstrap.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed/challenges/bootstrap.json b/seed/challenges/bootstrap.json index 9c6d924f414..927f17a6fa6 100644 --- a/seed/challenges/bootstrap.json +++ b/seed/challenges/bootstrap.json @@ -2141,7 +2141,7 @@ "tests": [ "assert(editor.match(/.*\\n.+/g), 'Be sure to close your comment with -->.')" + "assert(editor.match(/-->.*\\n+.+/g), 'Be sure to close your comment with -->.')" ], "challengeSeed": [ "
",