fix bug
This commit is contained in:
parent
2592d293d3
commit
5473c22bfb
@ -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)+'"';
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user