From b2328e96db7645d416cdce0e0325cb93ef20bc37 Mon Sep 17 00:00:00 2001
From: The Coding Aviator <34807532+thecodingaviator@users.noreply.github.com>
Date: Sun, 18 Nov 2018 20:15:03 +0530
Subject: [PATCH] Update import-a-google-font.english.md (#19717)
---
.../basic-css/import-a-google-font.english.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/curriculum/challenges/english/01-responsive-web-design/basic-css/import-a-google-font.english.md b/curriculum/challenges/english/01-responsive-web-design/basic-css/import-a-google-font.english.md
index 7c38dff344..dcfe44455e 100644
--- a/curriculum/challenges/english/01-responsive-web-design/basic-css/import-a-google-font.english.md
+++ b/curriculum/challenges/english/01-responsive-web-design/basic-css/import-a-google-font.english.md
@@ -32,7 +32,7 @@ tests:
- text: Your h2
element should use the font Lobster
.
testString: assert($("h2").css("font-family").match(/lobster/i), 'Your h2
element should use the font Lobster
.');
- text: Use an h2
CSS selector to change the font.
- testString: assert(/\s*h2\s*\{\s*font-family\:\s*(\'|")?Lobster(\'|")?\s*;\s*\}/gi.test(code), 'Use an h2
CSS selector to change the font.');
+ testString: 'assert(/\s*h2\s*\{\s*font-family\:\s*(\"|")?Lobster(\"|")?(.{0,})\s*;\s*\}/gi.test(code), "Use an h2
CSS selector to change the font.");'
- text: Your p
element should still use the font monospace
.
testString: assert($("p").css("font-family").match(/monospace/i), 'Your p
element should still use the font monospace
.');