Skip to content

Commit e727554

Browse files
Vimal-Raghubirraisedadead
authored andcommitted
Fix: Match single quotes (#17539)
* Fix: Match single quotes * Fix: slash direction * Fix: Regex expression and refined tests
1 parent 9e84a54 commit e727554

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

challenges/01-responsive-web-design/applied-accessibility.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,11 +1253,11 @@
12531253
"tests": [
12541254
{
12551255
"text": "Your code should move the anchor <code>a</code> tags from around the words \"Click here\" to wrap around the words \"information about batteries\".",
1256-
"testString": "assert($('a').text().match(/information about batteries/g), 'Your code should move the anchor <code>a</code> tags from around the words \"Click here\" to wrap around the words \"information about batteries\".');"
1256+
"testString": "assert($('a').text().match(/^(information about batteries)$/g), 'Your code should move the anchor <code>a</code> tags from around the words \"Click here\" to wrap around the words \"information about batteries\".');"
12571257
},
12581258
{
12591259
"text": "Make sure your <code>a</code> element has a closing tag.",
1260-
"testString": "assert(code.match(/<\\/a>/g) && code.match(/<\\/a>/g).length === code.match(/<a href=\"\">/g).length, 'Make sure your <code>a</code> element has a closing tag.');"
1260+
"testString": "assert(code.match(/<\\/a>/g) && code.match(/<\\/a>/g).length === code.match(/<a href=(''|\"\")>/g).length, 'Make sure your <code>a</code> element has a closing tag.');"
12611261
}
12621262
],
12631263
"solutions": [],

0 commit comments

Comments
 (0)