Skip to content

Commit

Permalink
v7.1.4
Browse files Browse the repository at this point in the history
- Use pure url from json feed

Related issue: #135
  • Loading branch information
ndaidong committed Feb 9, 2025
1 parent b3b5e40 commit bd1b336
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "7.1.3",
"version": "7.1.4",
"name": "@extractus/feed-extractor",
"description": "To read and normalize RSS/ATOM/JSON feed data",
"homepage": "https://extractor-demos.pages.dev",
Expand Down
5 changes: 3 additions & 2 deletions src/utils/parseJsonFeed.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { isArray } from 'bellajs'
import {
toISODateString,
buildDescription,
getEntryId
getEntryId,
getPureUrl
} from './normalizer.js'

import { absolutify, purify as purifyUrl } from './linker.js'
Expand Down Expand Up @@ -36,7 +37,7 @@ const transform = (item, options) => {
const entry = {
id: getEntryId(id, link, pubDate),
title,
link: purifyUrl(link) || absolutify(baseUrl, link),
link: getPureUrl(link, '', baseUrl),
published,
description: buildDescription(textContent || htmlContent || summary, descriptionMaxLen),
}
Expand Down

0 comments on commit bd1b336

Please sign in to comment.