From 7fa293ee6b60bfe8c7d310156e66c4a71f2736cd Mon Sep 17 00:00:00 2001 From: Conduitry Date: Thu, 25 Jan 2018 12:33:47 -0500 Subject: [PATCH] fix handling of CRs in debugging comments (#1132) --- src/utils/createDebuggingComment.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/createDebuggingComment.ts b/src/utils/createDebuggingComment.ts index bb9dffd0f4..65a3270ebb 100644 --- a/src/utils/createDebuggingComment.ts +++ b/src/utils/createDebuggingComment.ts @@ -17,5 +17,5 @@ export default function createDebuggingComment(node: Node, generator: DomGenerat const start = locate(c); const loc = `(${start.line + 1}:${start.column})`; - return `${loc} ${source.slice(c, d)}`.replace(/\n/g, ' '); -} \ No newline at end of file + return `${loc} ${source.slice(c, d)}`.replace(/\s/g, ' '); +}