updated 不扩大解释夫妻长辈的年龄
This commit is contained in:
parent
4a5e77c038
commit
4048131aca
2
dist/relationship.min.js
vendored
2
dist/relationship.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/relationship.zh-HK.min.js
vendored
2
dist/relationship.zh-HK.min.js
vendored
File diff suppressed because one or more lines are too long
@ -74,9 +74,12 @@ var branch = {
|
|||||||
};
|
};
|
||||||
var nameSet = new Set(Object.values(_map).flat());
|
var nameSet = new Set(Object.values(_map).flat());
|
||||||
for(var key in _map){
|
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){
|
for(var k in branch){
|
||||||
var newKey = k+','+key;
|
var newKey = k+','+key;
|
||||||
|
if(_map[newKey.replace(/,[ol]([sb])(,[wh])?$/,',x$1$2')]){ // 不扩大解释年龄
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if(!_map[newKey]){
|
if(!_map[newKey]){
|
||||||
_map[newKey] = [];
|
_map[newKey] = [];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user