Skip to content

Commit eeb2afe

Browse files
committed
#4049 fix: updated parser to handle windows line endings in frontmatter
1 parent 7a099b2 commit eeb2afe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/docs-site/scripts/sync-skills.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function parseFrontmatter(content) {
4646
const restOfContent = content.slice(match[0].length);
4747

4848
// Parse YAML
49-
const lines = yamlContent.split('\n');
49+
const lines = yamlContent.split(/\r?\n/);
5050
const metadata = {};
5151
let currentKey = null;
5252
let currentValue = '';

0 commit comments

Comments
 (0)