mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-08-12 11:52:50 +02:00
Upded length check
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user