Skip to content

Commit

Permalink
fix(readability): cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jan 1, 2025
1 parent 30a0cdf commit aa41e12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/metascraper-readability/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const readability = memoizeOne((url, html) => {
const dom = new JSDOM(html, { url, virtualConsole: new VirtualConsole() })
const reader = new Readability(dom.window.document)
return parseReader(reader)
})
}, memoizeOne.EqualityFirstArgument)

const getReadbility = composeRule(($, url) => readability(url, $.html()))

Expand Down

0 comments on commit aa41e12

Please sign in to comment.