From 3288f5bb6d42b17315ac2a35d4f447adb09836ed Mon Sep 17 00:00:00 2001 From: Ryan Cavanaugh Date: Tue, 29 Dec 2015 13:16:00 -0800 Subject: [PATCH] Make linter happy --- src/compiler/emitter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 77a9b658f74..c266a0fa77e 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -7221,9 +7221,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi // Replace entities like   result = result.replace(/&(\w+);/g, function(s: any, m: string) { if (entities[m] !== undefined) { - let ch = String.fromCharCode(entities[m]); + const ch = String.fromCharCode(entities[m]); // " needs to be escaped - return ch === '"' ? '\\"' : ch; + return ch === "\"" ? "\\\"" : ch; } else { return s;