Skip to content

Commit 6c9c057

Browse files
committed
fixes #2 include whitespace/linebreaks in regex
1 parent 6d87c9f commit 6c9c057

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/ignore-evaluation.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ $(document).on('ready', function(){
66
{expected: data.first_name, selector: ".first_name"},
77
{expected: data.occupation, selector: ".occupation"},
88
{expected: data.location, selector: ".location"},
9-
{expected: data.qualities.join(".*"), selector: ".qualities"},
9+
{expected: data.qualities.join("(.|\s)*"), selector: ".qualities"},
1010
{expected: data.siblings.length, selector: ".sibling_count"},
11-
{expected: data.siblings.map(function(v){ return v.first_name + ".*" + v.age; }).join(".*"), selector: ".sibling_list"},
12-
{expected: data.hobbies.map(function(v){ return v.name; }).join(".*"), selector: '.hobby_links a[href^="https://en.wikipedia.org/wiki/"]'} // hardcoded wiki url
11+
{expected: data.siblings.map(function(v){ return v.first_name + "(.|\s)*" + v.age; }).join("(.|\s)*"), selector: ".sibling_list"},
12+
{expected: data.hobbies.map(function(v){ return v.name; }).join("(.|\s)*"), selector: '.hobby_links a[href^="https://en.wikipedia.org/wiki/"]'} // hardcoded wiki url
1313
];
1414

1515

0 commit comments

Comments
 (0)