Skip to content

Commit 44bda9f

Browse files
authored
Merge pull request #4050 from Northeastern-Electric-Racing/#4049-Incorrectly-Parsing-Frontmatter-Line-Endings-On-Windows
#4049 - Updated Parser to handle Windows Line Endings in Frontmatter
2 parents 94a33d3 + eeb2afe commit 44bda9f

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)