From 9c1600c36de1f41603001334f0f0fb8af2e92da1 Mon Sep 17 00:00:00 2001 From: Hossein Mehrabi Date: Tue, 22 Aug 2023 14:39:08 +0330 Subject: [PATCH] fix: fix episode channels parser --- .../unbody/dataTypes/PodcastEpisodeDocument.dataType.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/unbody/dataTypes/PodcastEpisodeDocument.dataType.ts b/src/services/unbody/dataTypes/PodcastEpisodeDocument.dataType.ts index a076b0b..85cc0c9 100644 --- a/src/services/unbody/dataTypes/PodcastEpisodeDocument.dataType.ts +++ b/src/services/unbody/dataTypes/PodcastEpisodeDocument.dataType.ts @@ -144,7 +144,7 @@ const getDistributionChannels = async (blocks: LPE.Post.TextBlock[]) => { } const linkBlocks = blocks.filter((block) => - /^(https):\/\/[^ "]+$/.test(block.text), + /^(https):\/\/[^ "]+$/.test((block.text || '').trim()), ) for (const block of linkBlocks) {