From 5593018423cc0d40e8547787164f5fd6785a9434 Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Wed, 21 Oct 2020 17:20:39 +0200 Subject: [PATCH] Upded length check --- src/helpers/SeoHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/SeoHelper.ts b/src/helpers/SeoHelper.ts index 790171c2..7e1b3487 100644 --- a/src/helpers/SeoHelper.ts +++ b/src/helpers/SeoHelper.ts @@ -6,7 +6,7 @@ export class SeoHelper { public static checkLength(editor: vscode.TextEditor, collection: vscode.DiagnosticCollection, article: matter.GrayMatterFile, fieldName: string, length: number) { const value = article.data[fieldName]; - if (value.length >= length) { + if (value.length > length) { const text = editor.document.getText(); const markdown = ArticleHelper.stringifyFrontMatter("", article.data);