From 0db7b8cd875e7c0c69bbdcc8b7b97b77be0ae3dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Wed, 21 Mar 2018 15:31:11 +0100 Subject: [PATCH] tools: make metadata parsing less permissive PR-URL: https://github.com/nodejs/node/pull/19512 Reviewed-By: Tiancheng "Timothy" Gu Reviewed-By: James M Snell Reviewed-By: Luigi Pinca --- tools/doc/common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);