Revision 792fbe18
Added by koszko about 2 years ago
common/sanitize_JSON.js | ||
---|---|---|
37 | 37 |
let _default = undefined; |
38 | 38 |
|
39 | 39 |
if (!Array.isArray(schema) || schema[1] === "matchentry" || |
40 |
schema.length < 2 || !["ordefault", "or"].includes(schema)) |
|
40 |
schema.length < 2 || !["ordefault", "or"].includes(schema[1]))
|
|
41 | 41 |
return sanitize_unknown_no_alternatives(schema, item); |
42 | 42 |
|
43 | 43 |
if ((schema.length & 1) !== 1) { |
Also available in: Unified diff
Facilitate installation of scripts from the repository
This commit includes: