From c0b47ae7a7117222e3fc5bf9c0b7fccae839a028 Mon Sep 17 00:00:00 2001 From: Vimal Raghubir Date: Tue, 12 Jun 2018 22:31:31 -0400 Subject: [PATCH] Fix: Match single quotes (#17539) * Fix: Match single quotes * Fix: slash direction * Fix: Regex expression and refined tests --- .../01-responsive-web-design/applied-accessibility.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seed/challenges/01-responsive-web-design/applied-accessibility.json b/seed/challenges/01-responsive-web-design/applied-accessibility.json index 1ec7336c72..2d41eff475 100644 --- a/seed/challenges/01-responsive-web-design/applied-accessibility.json +++ b/seed/challenges/01-responsive-web-design/applied-accessibility.json @@ -1253,11 +1253,11 @@ "tests": [ { "text": "Your code should move the anchor a tags from around the words \"Click here\" to wrap around the words \"information about batteries\".", - "testString": "assert($('a').text().match(/information about batteries/g), 'Your code should move the anchor a tags from around the words \"Click here\" to wrap around the words \"information about batteries\".');" + "testString": "assert($('a').text().match(/^(information about batteries)$/g), 'Your code should move the anchor a tags from around the words \"Click here\" to wrap around the words \"information about batteries\".');" }, { "text": "Make sure your a element has a closing tag.", - "testString": "assert(code.match(/<\\/a>/g) && code.match(/<\\/a>/g).length === code.match(//g).length, 'Make sure your a element has a closing tag.');" + "testString": "assert(code.match(/<\\/a>/g) && code.match(/<\\/a>/g).length === code.match(//g).length, 'Make sure your a element has a closing tag.');" } ], "solutions": [],