Skip to content

Commit 0db7b8c

Browse files
tniessentargos
authored andcommitted
tools: make metadata parsing less permissive
PR-URL: #19512 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent fa17002 commit 0db7b8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/doc/common.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ function extractAndParseYAML(text) {
2121
// js-yaml.safeLoad() throws on error
2222
const meta = yaml.safeLoad(text);
2323

24-
const added = meta.added || meta.Added;
24+
const added = meta.added;
2525
if (added) {
2626
// Since semver-minors can trickle down to previous major versions,
2727
// features may have been added in multiple versions.
2828
meta.added = arrify(added);
2929
}
3030

31-
const deprecated = meta.deprecated || meta.Deprecated;
31+
const deprecated = meta.deprecated;
3232
if (deprecated) {
3333
// Treat deprecated like added for consistency.
3434
meta.deprecated = arrify(deprecated);

0 commit comments

Comments
 (0)