updated 不扩大解释夫妻长辈的年龄

This commit is contained in:
PASSER-BY 2023-01-13 19:50:07 +08:00
parent 4a5e77c038
commit 4048131aca
3 changed files with 6 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -74,9 +74,12 @@ var branch = {
};
var nameSet = new Set(Object.values(_map).flat());
for(var key in _map){
if(key.match(/^[fm]/)||key.match(/^[olx][bs]$|^[olx][bs],[^mf]/)){
if(key.match(/^[fm]/)||key.match(/^[olx][bs]$|^[olx][bs],[^mf]/)){ // 只对长辈或者兄弟辈匹配
for(var k in branch){
var newKey = k+','+key;
if(_map[newKey.replace(/,[ol]([sb])(,[wh])?$/,',x$1$2')]){ // 不扩大解释年龄
continue;
}
if(!_map[newKey]){
_map[newKey] = [];
}