From 87e22b48a756a35375c61826cdcea55e37009c5c Mon Sep 17 00:00:00 2001 From: bergyu Date: Mon, 25 Oct 2021 16:41:31 +0800 Subject: [PATCH] opt some --- lib/core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core.js b/lib/core.js index 54847a8c..0e30b034 100644 --- a/lib/core.js +++ b/lib/core.js @@ -24,7 +24,7 @@ Volcanos("core", {help: "数据结构", if (value != undefined) { data[key] = value } if (data[key] != undefined) { return data[key] } - var p = data, ls = key.split("."); while (p && ls.length > 0) { + var p = data, ls = key.split(ice.PT); while (p && ls.length > 0) { if (ls[0] == "-1") { ls[0] = p.length-1 } p = p[ls[0]], ls = ls.slice(1) }; return p @@ -75,7 +75,7 @@ Volcanos("core", {help: "数据结构", // 剩余字符 // begin > 0 && (s? push({type: "string", text: str.slice(begin), left: s, right: ""}) - begin > 0 && (s? push({type: "string", text: str.slice(begin), left: s, right: ""}): push(str.slice(begin))) + begin >= 0 && (s? push({type: "string", text: str.slice(begin), left: s, right: ""}): push(str.slice(begin))) return res }), CallFunc: shy("调用器", function(func, args, mod) { args = args||{}