diff --git a/tools/doc/common.js b/tools/doc/common.js index ce4995ddff39d1..9f7a25ecd484a3 100644 --- a/tools/doc/common.js +++ b/tools/doc/common.js @@ -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);