Skip to content

Commit

Permalink
fix #105 - validate all strings
Browse files Browse the repository at this point in the history
  • Loading branch information
acao committed Jun 1, 2024
1 parent 41c0f66 commit 0e16e2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class JSONValidation {
const text = view.state.doc.toString();

// ignore blank json strings
if (!text || text.trim().length < 3) return [];
if (!text || !text.length) return [];

const json = this.parser(view.state);

Expand Down

0 comments on commit 0e16e2d

Please sign in to comment.