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, ' '); +}