Merge pull request #1134 from sveltejs/gh-1132

fix handling of CRs in debugging comments (#1132)
pull/1142/head
Rich Harris 7 years ago committed by GitHub
commit 935d4a2955
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -17,5 +17,5 @@ export default function createDebuggingComment(node: Node, generator: DomGenerat
const start = locate(c); const start = locate(c);
const loc = `(${start.line + 1}:${start.column})`; const loc = `(${start.line + 1}:${start.column})`;
return `${loc} ${source.slice(c, d)}`.replace(/\n/g, ' '); return `${loc} ${source.slice(c, d)}`.replace(/\s/g, ' ');
} }

Loading…
Cancel
Save