From fb5acebacba044e45bbfbf0d8f531af6f9b66435 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=B5=A9=E4=B9=90?= <89932980@qq.com> Date: Thu, 17 Mar 2016 09:12:10 +0800 Subject: [PATCH] =?UTF-8?q?updated=20=E8=A1=A8=E5=93=A5=E7=9A=84=E8=A1=A8?= =?UTF-8?q?=E5=93=A5=EF=BC=8C=E8=A1=A8=E5=A7=90=E7=9A=84=E8=A1=A8=E5=A6=B9?= =?UTF-8?q?=E7=AD=89=E5=85=B3=E7=B3=BB=E7=9A=84=E9=97=AE=E9=A2=98=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/relationship.js | 52 +++++++++++++----------------------------- 1 file changed, 16 insertions(+), 36 deletions(-) diff --git a/script/relationship.js b/script/relationship.js index cbe28a2..2521574 100644 --- a/script/relationship.js +++ b/script/relationship.js @@ -129,9 +129,13 @@ exp:/^,[olx][sb],[olx]s$/, str:',#,xs' }, - {//父母的子女年龄判断不准确,可过滤 - exp:/(,[mf],[ds])&[ol]/, - str:'$1' + {//父母的女儿年龄判断是哥哥还是弟弟 + exp:/,[mf],d&([ol])/, + str:',$1s' + }, + {//父母的女儿年龄判断是姐姐还是妹妹 + exp:/,[mf],s&([ol])/, + str:',$1b' }, {//如果自己是男性,父母的儿子是自己或者兄弟 con:/(,[fhs]|([olx]b)),[mf],s/, @@ -441,21 +445,6 @@ } } } - // if(result.length){ //对年龄进行智能过滤 - // var item = result[0]; - // var o = item.match(/&o/); - // var l = item.match(/&l/); - // if(o&&l){ - // var filter = /&[ol]/g; - // for(var i=0;i-1){ var arr = selector.split('#'); for(var i=0;i