updated 匹配错误规则修正

This commit is contained in:
郑浩乐 2016-03-22 15:21:34 +08:00
parent 71794a5a8c
commit 674b8e6405

View File

@ -451,15 +451,17 @@
while(lists.length){
var name = lists.shift(); //当前匹配词
var arr = []; //当前匹配词可能性
var has = false;
for(var i in _data){
var value = _data[i];
if(value.indexOf(name)>-1){ //是否存在该关系
arr.push(i);
}else{
match = false; //是否存在不可解析的内容
break;
has = true;
}
}
if(!has){
match = false;
}
if(result.length){ //当前匹配词与之前可能性组合
var res = [];
for(var i=0;i<result.length;i++){