Skip to content

Commit dbd761f

Browse files
josephperrottthePunderWoman
authored andcommitted
fix(compiler-cli): correct incomplete escaping (#51557)
Correct incomplete escaping and replace all instances of ` PR Close #51557
1 parent dcd1add commit dbd761f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compiler-cli/test/ngtsc/template_mapping_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ runInEachFileSystem((os) => {
689689

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

0 commit comments

Comments
 (0)