Skip to content

Commit

Permalink
Update frontmatter-validator.js (#6849)
Browse files Browse the repository at this point in the history
fix validator error
  • Loading branch information
Aibono1225 authored Sep 27, 2023
1 parent bd1c504 commit 13e1a03
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/frontmatter-validator/frontmatter-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ function matchSchema(filePath) {
}

function validateFrontmatter(filePath) {
if (filePath.indexOf('.github') !== -1) {
return
}

if (!fs.existsSync(filePath)) {
console.error(`File ${filePath} does not exist.`);
return
Expand Down Expand Up @@ -94,4 +98,4 @@ function main() {
}
}

main();
main();

0 comments on commit 13e1a03

Please sign in to comment.