Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion extension/content/extractor-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function extractContentFromDOM(document, url = (typeof window !== 'undefi
title,
pageType,
content: content.slice(0, 15000),
wordCount: content.split(/\s+/).filter(Boolean).length
wordCount: (content.match(/\S+/g) || []).length
};
}

Expand Down
2 changes: 1 addition & 1 deletion extension/content/extractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function extractContentFromDOM(document, url = (typeof window !== 'undefined' &&
title,
pageType,
content: content.slice(0, 15000),
wordCount: content.split(/\s+/).filter(Boolean).length
wordCount: (content.match(/\S+/g) || []).length
};
}

Expand Down
Loading