Skip to content

Commit

Permalink
fix: pass titleize options
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jul 27, 2021
1 parent a66f8d4 commit a13bde5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/metascraper-helpers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ const lang = value => {
return includes(langs, lang) ? lang : undefined
}

const title = (value, { removeSeparator = false } = {}) =>
isString(value) && titleize(value, { removeSeparator })
const title = (value, { removeSeparator = false, ...opts } = {}) =>
isString(value) && titleize(value, { removeSeparator, ...opts })

const isMime = (contentType, type) => {
const ext = mimeTypes.extension(contentType)
Expand Down

0 comments on commit a13bde5

Please sign in to comment.