Skip to content

Commit

Permalink
added trim
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamkrishnar committed Jul 24, 2022
1 parent 21548dd commit f3b565e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/blog-post-workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,13 @@ feedList.forEach((siteUrl) => {
}
if (post && core.getInput('remove_duplicates') === 'true') {
if (
appendedPostTitles.indexOf(post.title) !== -1 ||
appendedPostDesc.indexOf(post.description) !== -1
appendedPostTitles.indexOf(post.title.trim()) !== -1 ||
appendedPostDesc.indexOf(post.description.trim()) !== -1
) {
post = null;
} else {
post.title && appendedPostTitles.push(post.title)
post.description && appendedPostDesc.push(post.description);
post.title && appendedPostTitles.push(post.title.trim());
post.description && appendedPostDesc.push(post.description.trim());
}
}

Expand Down

0 comments on commit f3b565e

Please sign in to comment.