| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 95b9cc7 commit dfdf6c7
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -49714,6 +49714,11 @@ function validateMeta(node, file, meta) { | |||
| 49714 | 49714 | ||
| 49715 | 49715 | function validateYAMLComments(tree, file) { | |
| 49716 | 49716 | unistUtilVisit(tree, "html", function visitor(node) { | |
| 49717 | + if (node.value.startsWith("<!--YAML\n")) | ||
| 49718 | + file.message( | ||
| 49719 | + "Expected `<!-- YAML`, found `<!--YAML`. Please add a space", | ||
| 49720 | + node | ||
| 49721 | + ); | ||
| 49717 | 49722 | if (!node.value.startsWith("<!-- YAML\n")) return; | |
| 49718 | 49723 | try { | |
| 49719 | 49724 | const meta = jsYaml$2.load("#" + node.value.slice(0, -"-->".length)); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments