summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-01 22:20:47 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-02 10:12:01 -0500
commit0171d86b28e3a4373a2deabb4a4a8cf738ca2743 (patch)
tree0421034081188683ca1cb3cb7362e9488df1eb50 /ext
parent52b623b5cdb1963aa1fb65228f9377e147708959 (diff)
Fix maxLength check
Diffstat (limited to 'ext')
-rw-r--r--ext/bg/js/json-schema.js2
1 files changed, 1 insertions, 1 deletions
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';
}