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);