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 30a9bc002e..37159cfcce 100644
--- a/challenges/01-front-end-development-certification/html5-and-css.json
+++ b/challenges/01-front-end-development-certification/html5-and-css.json
@@ -265,7 +265,7 @@
"assert($(\"h1\").length > 0, 'message: Make your h1
element visible on your page by uncommenting it.');",
"assert($(\"h2\").length > 0, 'message: Make your h2
element visible on your page by uncommenting it.');",
"assert($(\"p\").length > 0, 'message: Make your p
element visible on your page by uncommenting it.');",
- "assert(!/-->/gi.test(code.replace(/ */gi.test(code.replace(/ */g).length > 1, 'message: Be sure to close each of your comments with -->
.');",
+ "assert(code.match(/[^fc]-->/g).length > 1, 'message: Be sure to close each of your comments with -->
.');",
"assert((code.match(/<([a-z0-9]){1,2}>/g)[0]===\"
\") , 'message: Do not change the order of the h1
h2
or p
in the code.');"
],
"type": "waypoint",
@@ -1071,8 +1071,8 @@
"tests": [
"assert($(\"h2\").css(\"font-family\").match(/^\"?lobster/i), 'message: Your h2 element should use the font Lobster
.');",
"assert($(\"h2\").css(\"font-family\").match(/lobster.*,.*monospace/i), 'message: Your h2 element should degrade to the font Monospace
when Lobster
is not available.');",
- "assert(new RegExp(\"\", \"gi\").test(code), 'message: Be sure to close your comment by adding -->
.');"
+ "assert(new RegExp(\"\", \"gi\").test(code), 'message: Be sure to close your comment by adding -->
.');"
],
"type": "waypoint",
"titleEs": "Especifica cómo deben degradarse los tipos de letra",