Skip to content

Commit 0e16e2d

Browse files
committed
fix #105 - validate all strings
1 parent 41c0f66 commit 0e16e2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/validation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export class JSONValidation {
128128
const text = view.state.doc.toString();
129129

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

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

0 commit comments

Comments
 (0)