Skip to content

Commit

Permalink
Merge pull request #1134 from sveltejs/gh-1132
Browse files Browse the repository at this point in the history
fix handling of CRs in debugging comments (#1132)
  • Loading branch information
Rich-Harris authored Jan 26, 2018
2 parents 9f088fe + 1bb275b commit 935d4a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/createDebuggingComment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, ' ');
}

0 comments on commit 935d4a2

Please sign in to comment.