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

Commit

Permalink
fix(challenges): fix regex in applied visual design challenge (#162)
Browse files Browse the repository at this point in the history
* fix(challenges): fix regex in applied visual design challenge

ISSUES CLOSED: #161

* fix(challenges): allow whitespace inside url()

ISSUES CLOSED: #161
  • Loading branch information
joshalling authored and johnkennedy9147 committed Jul 18, 2018
1 parent 667dba9 commit 5a34767
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2307,7 +2307,7 @@
"text":
"Your <code>body</code> element should have a <code>background</code> property set to a <code>url()</code> with the given link.",
"testString":
"assert(code.match(/background:\\s*?url\\((\"|')https:\\/\\/i\\.imgur\\.com\\/MJAkxbh\\.png(\"|')\\)/gi), 'Your <code>body</code> element should have a <code>background</code> property set to a <code>url()</code> with the given link.');"
"assert(code.match(/background:\\s*?url\\(\\s*(\"|'|)https:\\/\\/i\\.imgur\\.com\\/MJAkxbh\\.png\\1\\s*\\)/gi), 'Your <code>body</code> element should have a <code>background</code> property set to a <code>url()</code> with the given link.');"
}
],
"solutions": [],
Expand Down

0 comments on commit 5a34767

Please sign in to comment.