0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00

Merge pull request #1134 from sveltejs/gh-1132

fix handling of CRs in debugging comments (#1132)
This commit is contained in:
Rich Harris 2018-01-26 13:49:29 -05:00 committed by GitHub
commit 935d4a2955
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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, ' ');
}
return `${loc} ${source.slice(c, d)}`.replace(/\s/g, ' ');
}