Use quoteStyle

This commit is contained in:
Michael B. Gale
2026-06-22 14:23:48 +01:00
parent 31d88dd791
commit ba61470b11
2 changed files with 2964 additions and 2454 deletions

5414
lib/entry-points.js generated

File diff suppressed because it is too large Load Diff

View File

@@ -281,11 +281,11 @@ extensions:
.join(checkoutPath, range.path)
.replaceAll(path.sep, "/");
// Using yaml.dump() with `forceQuotes: true` ensures that all special
// Using yaml.dump() with `quoteStyle: "double"` ensures that all special
// characters are escaped, and that the path is always rendered as a
// quoted string on a single line.
return (
` - [${yaml.dump(filename, { forceQuotes: true }).trim()}, ` +
` - [${yaml.dump(filename, { quoteStyle: "single" }).trim()}, ` +
`${range.startLine}, ${range.endLine}]\n`
);
})