From fd2f1739461e583d610668a22cf8015ea87d0985 Mon Sep 17 00:00:00 2001 From: Jhonnatan Gonzalez Date: Wed, 21 Dec 2016 23:12:41 -0600 Subject: [PATCH] Changing Form validation to look better for open and close tags, Also improved message since the error could be not only due a missing tag but not wel formatted tags --- .../01-front-end-development-certification/html5-and-css.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/01-front-end-development-certification/html5-and-css.json b/challenges/01-front-end-development-certification/html5-and-css.json index ad7581cfe4..226158a26d 100644 --- a/challenges/01-front-end-development-certification/html5-and-css.json +++ b/challenges/01-front-end-development-certification/html5-and-css.json @@ -2411,7 +2411,7 @@ "tests": [ "assert($(\"form\") && $(\"form\").children(\"input\") && $(\"form\").children(\"input\").length > 0, 'message: Nest your text input element within a form element.');", "assert($(\"form\").attr(\"action\") === \"/submit-cat-photo\", 'message: Make sure your form has an action attribute which is set to /submit-cat-photo');", - "assert(code.match(/<\\/form>/g) && code.match(/
/g).length === code.match(/form element has a closing tag.');" + "assert(code.match(/<\\/form>/g) && code.match(//g) && code.match(/<\\/form>/g).length === code.match(//g).length, 'message: Make sure your form element has well-formed open and close tags.');" ], "type": "waypoint", "challengeType": 0,