diff --git a/src/template_engine.mjs b/src/template_engine.mjs index 3e19dc4..4fe5246 100644 --- a/src/template_engine.mjs +++ b/src/template_engine.mjs @@ -77,7 +77,8 @@ export class TemplateEngine { const formatString = isLastLine ? '%s' : '%s\\n'; - buffer += `printf '${formatString}' '${line.replace("'", "'\\''")}';\n`; + buffer += + `printf '${formatString}' '${line.replaceAll("'", "'\\''")}';\n`; } return buffer;