diff --git a/challenges/html5-and-css.json b/challenges/html5-and-css.json
index 926676c9e4d..120360b45f5 100644
--- a/challenges/html5-and-css.json
+++ b/challenges/html5-and-css.json
@@ -3508,7 +3508,7 @@
],
"tests": [
"assert($(\"body\").css(\"background-color\") === \"rgb(255, 0, 0)\", 'Give your body element the background-color of red.')",
- "assert(editor.match(/#FF0000/g) && editor.match(/#FF0000/g).length > 0, 'Use the hex code for the color red instead of the word red. For example body { color: #FF0000; }.')"
+ "assert(editor.match(/#FF0000/ig) && editor.match(/#FF0000/ig).length > 0, 'Use the hex code for the color red instead of the word red. For example body { color: #FF0000; }.')"
],
"challengeSeed": [
"