From 0171d86b28e3a4373a2deabb4a4a8cf738ca2743 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 1 Feb 2020 22:20:47 -0500 Subject: Fix maxLength check --- ext/bg/js/json-schema.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/bg') diff --git a/ext/bg/js/json-schema.js b/ext/bg/js/json-schema.js index 9b651f46..29873b52 100644 --- a/ext/bg/js/json-schema.js +++ b/ext/bg/js/json-schema.js @@ -339,7 +339,7 @@ class JsonSchemaProxyHandler { return 'String length too short'; } - const maxLength = schema.minLength; + const maxLength = schema.maxLength; if (typeof maxLength === 'number' && value.length > maxLength) { return 'String length too long'; } -- cgit v1.2.3