Skip to content

Commit

Permalink
fix(builder): ftl prefixing always matches at line start
Browse files Browse the repository at this point in the history
  • Loading branch information
windingwind committed Jan 5, 2025
1 parent 03d00dc commit f2a9d47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/scaffold/src/core/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit f2a9d47

Please sign in to comment.