Permalink
Browse files
Winnipeg Free Press.js -- fix eslint warnings
- Loading branch information...
Showing
with
4 additions
and
4 deletions.
-
+4
−4
Winnipeg Free Press.js
|
@@ -37,7 +37,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
function detectWeb(doc, url) { |
|
|
|
if (url.indexOf('.html')>-1) { |
|
|
|
if (url.includes('.html')) { |
|
|
|
return "newspaperArticle"; |
|
|
|
} else if (getSearchResults(doc, true)) { |
|
|
|
return "multiple"; |
|
@@ -106,7 +106,7 @@ function scrape(doc, url) { |
|
|
|
trans.addCustomFields({ |
|
|
|
'publish-date': 'date', |
|
|
|
'cXenseParse:recs:custom2': 'section' |
|
|
|
}) |
|
|
|
}); |
|
|
|
trans.doWeb(doc, url); |
|
|
|
}); |
|
|
|
} |
|
@@ -200,5 +200,5 @@ var testCases = [ |
|
|
|
"url": "http://www.winnipegfreepress.com/search/?keywords=chocolate&searchSubmitted=y&sortBy=-startDate", |
|
|
|
"items": "multiple" |
|
|
|
} |
|
|
|
] |
|
|
|
/** END TEST CASES **/
|
|
|
|
]; |
|
|
|
/** END TEST CASES **/ |
0 comments on commit
f8a6354