From ac102a77de568381d41d690ea1418ad15f31138d Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sat, 24 Apr 2021 17:42:59 +0200 Subject: [PATCH] feat: validate illformed YAML comments (#180) Refs: https://github.com/nodejs/node/pull/38324 --- remark-lint-nodejs-yaml-comments.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/remark-lint-nodejs-yaml-comments.js b/remark-lint-nodejs-yaml-comments.js index b9f5bde8..5a7a5fd5 100644 --- a/remark-lint-nodejs-yaml-comments.js +++ b/remark-lint-nodejs-yaml-comments.js @@ -219,6 +219,11 @@ function validateMeta(node, file, meta) { function validateYAMLComments(tree, file) { visit(tree, "html", function visitor(node) { + if (node.value.startsWith("".length));