Skip to content

Commit

Permalink
🗑️ deleted unused "match" variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Calinator444 committed Nov 4, 2024
1 parent c61edd9 commit 3f1df9b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion scripts/frontmatter-validator/frontmatter-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ function getMissingSpaceErrors(frontmatterContents, schema) {
if (!frontmatterContents) return [];
for (const field of Object.keys(schema.properties)) {
const regex = new RegExp(`[\\s^](${field}:)\\S`);
const match = frontmatterContents.match(regex);
if (frontmatterContents.match(regex)) {
errors.push(
`A space is missing after the ':' in the field '${field}'. Please add a space between the ':' and the '${field}' value`
Expand Down

0 comments on commit 3f1df9b

Please sign in to comment.