Skip to content

Commit

Permalink
fix: bad merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jan 12, 2025
1 parent 5b6cc0a commit e88d2b1
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions packages/metascraper-readability/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,15 @@ module.exports = ({ getDocument = defaultGetDocument } = {}) => {
readability(url, $.html(), getDocument)
)

module.exports = () => {
const rules = {
author: getReadbility({ from: 'byline', to: 'author' }),
description: getReadbility({ from: 'excerpt', to: 'description' }),
lang: getReadbility({ from: 'lang' }),
publisher: getReadbility({ from: 'siteName', to: 'publisher' }),
title: getReadbility({ from: 'title' })
}

rules.pkgName = 'metascraper-readability'

return rules
const rules = {
author: getReadbility({ from: 'byline', to: 'author' }),
description: getReadbility({ from: 'excerpt', to: 'description' }),
lang: getReadbility({ from: 'lang' }),
publisher: getReadbility({ from: 'siteName', to: 'publisher' }),
title: getReadbility({ from: 'title' })
}

rules.pkgName = 'metascraper-readability'

return rules
}

0 comments on commit e88d2b1

Please sign in to comment.