We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 986ebaf commit e545d30Copy full SHA for e545d30
src/analyze.ts
@@ -507,7 +507,11 @@ extensions:
507
let data = ranges
508
.map(
509
(range) =>
510
- ` - ["${range.path}", ${range.startLine}, ${range.endLine}]\n`,
+ // Using yaml.dump() with `forceQuotes: true` ensures that all special
511
+ // characters are escaped, and that the path is always rendered as a
512
+ // quoted string on a single line.
513
+ ` - [${yaml.dump(range.path, { forceQuotes: true }).trim()}, ` +
514
+ `${range.startLine}, ${range.endLine}]\n`,
515
)
516
.join("");
517
if (!data) {
0 commit comments