rexjohannes 2025-05-27 22:15:43 +02:00 committed by GitHub
parent 245a5969b8
commit dc80d3e535
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -180,10 +180,6 @@ class DrupalWiki {
// show up (deduplication).
const targetUUID = `${hostname}.${page.spaceId}.${page.id}.${page.created}`;
const wordCount = page.processedBody.split(" ").length;
const tokenCount =
page.processedBody.length > 0
? tokenizeString(page.processedBody).length
: 0;
const data = {
id: targetUUID,
url: `drupalwiki://${page.url}`,
@ -195,7 +191,7 @@ class DrupalWiki {
published: new Date().toLocaleString(),
wordCount: wordCount,
pageContent: page.processedBody,
token_count_estimate: tokenCount,
token_count_estimate: tokenizeString(page.processedBody),
};
const fileName = sanitizeFileName(`${slugify(page.title)}-${data.id}`);