From c61edd91f9ed20ca9416d953c697efba6f183bf2 Mon Sep 17 00:00:00 2001 From: Calinator444 Date: Mon, 4 Nov 2024 16:48:32 +1100 Subject: [PATCH] added quotes around field for missing spaces error message --- scripts/frontmatter-validator/frontmatter-validator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/frontmatter-validator/frontmatter-validator.js b/scripts/frontmatter-validator/frontmatter-validator.js index 0dd0fea10d8..8c9782c0eab 100644 --- a/scripts/frontmatter-validator/frontmatter-validator.js +++ b/scripts/frontmatter-validator/frontmatter-validator.js @@ -64,7 +64,7 @@ function getMissingSpaceErrors(frontmatterContents, schema) { 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` + `A space is missing after the ':' in the field '${field}'. Please add a space between the ':' and the '${field}' value` ); } }