We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eebc3a0 commit 32c40edCopy full SHA for 32c40ed
packages/builders/src/base-builder.ts
@@ -562,10 +562,11 @@ export abstract class BaseBuilder {
562
563
// Escape for embedding in a template literal string.
564
// Order matters: backslashes first, then backticks, then dollar signs.
565
+ // Using function replacements to avoid special $ patterns in replacement strings.
566
const escapedWorkflowCode = workflowBundleCode
- .replace(/\\/g, '\\\\')
567
- .replace(/`/g, '\\`')
568
- .replace(/\$/g, '\\$');
+ .replace(/\\/g, () => '\\\\')
+ .replace(/`/g, () => '\\`')
569
+ .replace(/\$/g, () => '\\$');
570
571
const workflowFunctionCode = `// biome-ignore-all lint: generated file
572
/* eslint-disable */
0 commit comments