Skip to content

Commit

Permalink
tools: make metadata parsing less permissive
Browse files Browse the repository at this point in the history
PR-URL: #19512
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
tniessen authored and MylesBorins committed Aug 17, 2018
1 parent 2fb47a5 commit aa3be00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/doc/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ function extractAndParseYAML(text) {
// js-yaml.safeLoad() throws on error
const meta = yaml.safeLoad(text);

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

const deprecated = meta.deprecated || meta.Deprecated;
const deprecated = meta.deprecated;
if (deprecated) {
// Treat deprecated like added for consistency.
meta.deprecated = arrify(deprecated);
Expand Down

0 comments on commit aa3be00

Please sign in to comment.