Skip to content

Commit

Permalink
fix(route/aljazeera): Fix time matching regex. (DIYgod#13671)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzx-dzx authored Nov 1, 2023
1 parent 3f62745 commit 98aa961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/v2/aljazeera/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ module.exports = async (ctx) => {

item.title = content('h1').first().text();
item.author = content('.author').text();
item.pubDate = parseDate(detailResponse.data.match(/"datePublished": "(.*?)",/)[1]);
item.pubDate = parseDate(detailResponse.data.match(/"datePublished": ?"(.*?)",/)[1]);
item.description = art(path.join(__dirname, 'templates/description.art'), {
image: content('.article-featured-image').html(),
description: content('.wysiwyg').html(),
Expand Down

0 comments on commit 98aa961

Please sign in to comment.