From a13bde5434cf37fc99c1a8dc86acbe8c97fae5dc Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Tue, 27 Jul 2021 15:42:09 +0200 Subject: [PATCH] fix: pass titleize options --- packages/metascraper-helpers/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/metascraper-helpers/index.js b/packages/metascraper-helpers/index.js index d0cf7787f..1f6595300 100644 --- a/packages/metascraper-helpers/index.js +++ b/packages/metascraper-helpers/index.js @@ -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)