Upded length check

This commit is contained in:
Elio Struyf
2020-10-21 17:20:39 +02:00
parent 9e72687f77
commit 5593018423
+1 -1
View File
@@ -6,7 +6,7 @@ export class SeoHelper {
public static checkLength(editor: vscode.TextEditor, collection: vscode.DiagnosticCollection, article: matter.GrayMatterFile<string>, 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);