From 5efca285feedbc525a44ba18240dd94b0a0b698c Mon Sep 17 00:00:00 2001 From: Igor Warzocha Date: Mon, 26 Jan 2026 01:25:58 +0000 Subject: [PATCH] tighten up detection --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index ad7f654..f353481 100644 --- a/index.ts +++ b/index.ts @@ -271,7 +271,7 @@ const Replacer: Plugin = async ({ client }) => { for (const part of output.parts) { if (part.type === "text" && "text" in part && typeof part.text === "string") { const { result, counts } = applyReplacements(part.text, config.replacements) - ;(part as { text: string }).text = result + ;(part as any).text = result // Merge counts for (const [key, count] of counts) {