fix(challenges): fix regex in applied visual design challenge (#162)

* fix(challenges): fix regex in applied visual design challenge

ISSUES CLOSED: #161

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

ISSUES CLOSED: #161
This commit is contained in:
Josh Alling
2018-07-18 15:03:10 -06:00
committed by John Kennedy
parent 667dba93b4
commit 5a347676db

View File

@ -2307,7 +2307,7 @@
"text": "text":
"Your <code>body</code> element should have a <code>background</code> property set to a <code>url()</code> with the given link.", "Your <code>body</code> element should have a <code>background</code> property set to a <code>url()</code> with the given link.",
"testString": "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": [], "solutions": [],