Skip to content

Commit

Permalink
v7.2.16
Browse files Browse the repository at this point in the history
- Fix issue extractus#347
- Update dependencies
  • Loading branch information
ndaidong committed May 21, 2023
1 parent 7a51b44 commit 1a50c6e
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 44 deletions.
4 changes: 2 additions & 2 deletions dist/article-extractor.esm.js

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions dist/cjs/article-extractor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cjs/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@extractus/article-extractor",
"version": "7.2.15",
"version": "7.2.16",
"main": "./article-extractor.js"
}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "7.2.15",
"version": "7.2.16",
"name": "@extractus/article-extractor",
"description": "To extract main article from given URL",
"homepage": "https://github.com/extractus/article-extractor",
Expand Down Expand Up @@ -33,14 +33,14 @@
"dependencies": {
"@mozilla/readability": "^0.4.4",
"bellajs": "^11.1.2",
"cross-fetch": "^3.1.5",
"cross-fetch": "^3.1.6",
"linkedom": "^0.14.26",
"sanitize-html": "2.10.0"
},
"devDependencies": {
"@types/sanitize-html": "^2.9.0",
"esbuild": "^0.17.18",
"eslint": "^8.40.0",
"esbuild": "^0.17.19",
"eslint": "^8.41.0",
"jest": "^29.5.0",
"nock": "^13.3.1"
},
Expand Down
6 changes: 1 addition & 5 deletions src/utils/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@ const stripMultiLinebreaks = (str) => {
}

const stripMultispaces = (str) => {
return str.replace(WS_REGEXP, ' ')
.replace(/ +/g, ' ')
.replace(/\s+/g, ' ')
.replace(/\t+/gm, '')
.trim()
return str.replace(WS_REGEXP, ' ').trim()
}

export const cleanify = (inputHtml) => {
Expand Down

0 comments on commit 1a50c6e

Please sign in to comment.