Skip to content

Commit

Permalink
fix(compiler-cli): correct incomplete escaping (#51557)
Browse files Browse the repository at this point in the history
Correct incomplete escaping and replace all instances of `

PR Close #51557
  • Loading branch information
josephperrott authored and thePunderWoman committed Aug 29, 2023
1 parent dcd1add commit dbd761f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compiler-cli/test/ngtsc/template_mapping_spec.ts
Expand Up @@ -689,7 +689,7 @@ runInEachFileSystem((os) => {

async function compileAndMap(template: string, templateUrl: string|null = null) {
const templateConfig = templateUrl ? `templateUrl: '${templateUrl}'` :
('template: `' + template.replace(/`/g, '\\`') + '`');
('template: `' + template.replace(/\`/g, '\\`') + '`');
env.write('test.ts', `
import {Component, Directive, Input, Output, EventEmitter, Pipe, NgModule} from '@angular/core';
Expand Down

0 comments on commit dbd761f

Please sign in to comment.