Fixed bug escaping quotes

This commit is contained in:
Ben Ashton 2022-09-05 22:22:22 -06:00
parent 954919c393
commit e23382f729

View File

@ -77,7 +77,8 @@ export class TemplateEngine {
const formatString = isLastLine ? '%s' : '%s\\n'; const formatString = isLastLine ? '%s' : '%s\\n';
buffer += `printf '${formatString}' '${line.replace("'", "'\\''")}';\n`; buffer +=
`printf '${formatString}' '${line.replaceAll("'", "'\\''")}';\n`;
} }
return buffer; return buffer;