From 5473c22bfbaa2758bf64f84242b9dfc70ae3407d Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Fri, 20 Aug 2021 13:43:47 +0800 Subject: [PATCH] fix bug --- _server/MotaActionParser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_server/MotaActionParser.js b/_server/MotaActionParser.js index b9ec1c6f..ed447206 100644 --- a/_server/MotaActionParser.js +++ b/_server/MotaActionParser.js @@ -1464,7 +1464,7 @@ MotaActionFunctions.PosString_pre = function(PosString){ if (!PosString || /^-?\d+$/.test(PosString)) return PosString; //if (!(MotaActionFunctions.pattern.id.test(PosString)))throw new Error(PosString+'中包含了0-9 a-z A-Z _ 和中文之外的字符,或者是没有以flag: 开头'); var comma = PosString.indexOf(','); - if (comma >= 0 && PosString.substring(0, comma).ifndexOf('(') < 0) throw '此处不可写多点坐标'; + if (comma >= 0 && PosString.substring(0, comma).indexOf('(') < 0) throw '此处不可写多点坐标'; return '"'+MotaActionFunctions.replaceFromName(PosString)+'"'; }