Skip to content

Commit bd1b336

Browse files
committed
v7.1.4
- Use pure url from json feed Related issue: #135
1 parent b3b5e40 commit bd1b336

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "7.1.3",
2+
"version": "7.1.4",
33
"name": "@extractus/feed-extractor",
44
"description": "To read and normalize RSS/ATOM/JSON feed data",
55
"homepage": "https://extractor-demos.pages.dev",

Diff for: src/utils/parseJsonFeed.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import { isArray } from 'bellajs'
77
import {
88
toISODateString,
99
buildDescription,
10-
getEntryId
10+
getEntryId,
11+
getPureUrl
1112
} from './normalizer.js'
1213

1314
import { absolutify, purify as purifyUrl } from './linker.js'
@@ -36,7 +37,7 @@ const transform = (item, options) => {
3637
const entry = {
3738
id: getEntryId(id, link, pubDate),
3839
title,
39-
link: purifyUrl(link) || absolutify(baseUrl, link),
40+
link: getPureUrl(link, '', baseUrl),
4041
published,
4142
description: buildDescription(textContent || htmlContent || summary, descriptionMaxLen),
4243
}

0 commit comments

Comments
 (0)