Skip to content
This repository was archived by the owner on Sep 25, 2019. It is now read-only.

Commit 4c0d587

Browse files
huyenltnguyenraisedadead
authored andcommitted
fix(challenges): fix a test case in an Applied Accessibility
fix a test case in Applied Accessibility: Improve Accessibility of Audio Content with the audio Element
1 parent 46fcf43 commit 4c0d587

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@
521521
"text":
522522
"Make sure your <code>audio</code> element has a closing tag.",
523523
"testString":
524-
"assert(code.match(/<\\/audio>/g) && code.match(/<audio controls>/g) && code.match(/<\\/audio>/g).length === code.match(/<audio controls>/g).length, 'Make sure your <code>audio</code> element has a closing tag.');"
524+
"assert(code.match(/<\\/audio>/g).length === 1 && code.match(/<audio.*>[\\s\\S]*<\\/audio>/g), 'Make sure your <code>audio</code> element has a closing tag.');"
525525
},
526526
{
527527
"text":

0 commit comments

Comments
 (0)