From 33d8e5d81b2090b398df609bc5e2492557211602 Mon Sep 17 00:00:00 2001 From: Arsen Melikyan Date: Sun, 20 Sep 2015 02:17:25 +0400 Subject: [PATCH] fixes two 'editor.match() in null' errors --- challenges/html5-and-css.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/challenges/html5-and-css.json b/challenges/html5-and-css.json index 6d75e39b75..263724e042 100644 --- a/challenges/html5-and-css.json +++ b/challenges/html5-and-css.json @@ -3340,7 +3340,7 @@ "assert($(\"h1\").hasClass(\"pink-text\"), 'Your h1 element should have the class pink-text.')", "assert($(\"h1\").hasClass(\"blue-text\"), 'Your h1 element should have the class blue-text.')", "assert($(\"h1\").attr(\"id\") === \"orange-text\", 'Your h1 element should have the id of orange-text.')", - "assert(editor.match(/ 0, 'Give your h1 element the inline style of color: white.')", + "assert(editor.match(/h1 element the inline style of color: white.')", "assert($(\"h1\").css(\"color\") === \"rgb(255, 255, 255)\", 'Your h1 element should be white.')" ], "challengeSeed": [ @@ -3393,7 +3393,7 @@ "assert($(\"h1\").hasClass(\"pink-text\"), 'Your h1 element should have the class pink-text.')", "assert($(\"h1\").hasClass(\"blue-text\"), 'Your h1 element should have the class blue-text.')", "assert($(\"h1\").attr(\"id\") === \"orange-text\", 'Your h1 element should have the id of orange-text.')", - "assert(editor.match(/ 0, 'Your h1 element should have the inline style of color: white.')", + "assert(editor.match(/h1 element should have the inline style of color: white.')", "assert(editor.match(/pink.*\\!important;/gi), 'Your pink-text class should have the !important keyword to override all other declarations.')", "assert($(\"h1\").css(\"color\") === \"rgb(255, 192, 203)\", 'Your h1 element should be pink.')" ],