Skip to content

Commit ec9d681

Browse files
committed
fix(yaml parser): safer multi-document yaml split
1 parent a09943a commit ec9d681

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/parsed-yaml-retriever.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const getParsedYaml = gh => async data => {
1212
const file = await promisify(gh.repos.getContent)(options)
1313
contents = Buffer.from(file.content, 'base64').toString()
1414
}
15-
const docs = contents.split('---')
15+
const docs = contents.split('\n---\n')
1616
const parsedDocs = docs.map(d => {
1717
return yaml.parse(d)
1818
})

0 commit comments

Comments
 (0)