From f2a9d473c948cac65de603be0d9ec0de3e71a5f7 Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:30:30 +0100 Subject: [PATCH] fix(builder): ftl prefixing always matches at line start --- packages/scaffold/src/core/builder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/scaffold/src/core/builder.ts b/packages/scaffold/src/core/builder.ts index e562f16..54c9f06 100644 --- a/packages/scaffold/src/core/builder.ts +++ b/packages/scaffold/src/core/builder.ts @@ -173,7 +173,7 @@ export default class Build extends Base { const namespacedMessage = `${namespace}-${message}`; localeMessages.add(message); allMessages.add(message); - ftlContent = ftlContent.replace(message, namespacedMessage); + ftlContent = ftlContent.replace(new RegExp(`^${message}`, "gm"), namespacedMessage); } }