mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-29 04:12:45 +08:00
调整quickcommandparser
This commit is contained in:
parent
d73fc94826
commit
a1c00e962c
@ -5,8 +5,8 @@
|
|||||||
// 是否含有 quickcommand 键值
|
// 是否含有 quickcommand 键值
|
||||||
let isJsonQc = (obj, strict = true) => {
|
let isJsonQc = (obj, strict = true) => {
|
||||||
var keys = strict
|
var keys = strict
|
||||||
? ["features", "program", "cmd", "output"]
|
? ["features", "program", "output"]
|
||||||
: ["program", "cmd"];
|
: ["program"];
|
||||||
if (keys.filter((x) => typeof obj[x] == "undefined").length) return false;
|
if (keys.filter((x) => typeof obj[x] == "undefined").length) return false;
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user