From e425df2b0b8458030281571b835832544b3f5890 Mon Sep 17 00:00:00 2001 From: Nathan Leniz Date: Fri, 6 Feb 2015 20:25:21 -0500 Subject: [PATCH] Regex matching example for lorem ipsum challenge --- seed_data/coursewares.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed_data/coursewares.json b/seed_data/coursewares.json index c47fca00cc..d743390948 100644 --- a/seed_data/coursewares.json +++ b/seed_data/coursewares.json @@ -114,7 +114,7 @@ "Here are the first 25 words of lorem ipsum text: \"lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\"" ], "tests": [ - "expect($('p')).to.have.text('lorem ipsum');" + "expect((/Lorem(\\s)+ipsum(\\s)+dolor/gi).test($('p').text())).to.be.true;" ], "challengeSeed": [ "

hello world

",