From 3aac69a4a3b46daa4904485998de193e6d9be6fa Mon Sep 17 00:00:00 2001 From: "[dyad]" Date: Tue, 20 Jan 2026 14:20:07 +0100 Subject: [PATCH] [dyad] Improved keyword counter accuracy - wrote 1 file(s) --- src/app/actions.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/actions.ts b/src/app/actions.ts index 538108d..dad6ec7 100644 --- a/src/app/actions.ts +++ b/src/app/actions.ts @@ -115,6 +115,7 @@ export async function extractMetaData(url: string, keyword?: string) { let keywordCount: number | null = null; const trimmedKeyword = keyword?.trim(); if (trimmedKeyword) { + $("script, style").remove(); const bodyText = $("body").text(); const regex = new RegExp(trimmedKeyword, "gi"); const matches = bodyText.match(regex);