From 0e66814ee0493ffc147cb38b071f632691f62359 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 --- challenges/bootstrap.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/bootstrap.json b/challenges/bootstrap.json index fb4f864474..9c6d924f41 100644 --- a/challenges/bootstrap.json +++ b/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 a1764b1f73d6cf13bd3f66bae635c1786d63bdb9 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 --- challenges/bootstrap.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/bootstrap.json b/challenges/bootstrap.json index 9c6d924f41..927f17a6fa 100644 --- a/challenges/bootstrap.json +++ b/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": [ "
",