From e72755461c97d58d2cca01b5c052219586095cd4 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/challenges/01-responsive-web-design/applied-accessibility.json b/challenges/01-responsive-web-design/applied-accessibility.json index 99d40a45f8..39cdaa5d85 100644 --- a/challenges/01-responsive-web-design/applied-accessibility.json +++ b/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": [],