From 32a6d7a7562d7318a77c0fecc5ccd292acb1f372 Mon Sep 17 00:00:00 2001 From: mumuy Date: Mon, 1 Aug 2016 07:32:50 +0800 Subject: [PATCH] =?UTF-8?q?updated=20=E4=B8=80=E5=A4=84=E6=80=A7=E5=88=AB?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E9=94=99=E8=AF=AF=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/relationship.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/relationship.js b/script/relationship.js index e5bb3f0..dd6a99a 100644 --- a/script/relationship.js +++ b/script/relationship.js @@ -680,7 +680,7 @@ sex = 0; } } - sex2 = selector.match(/,([mw]|[olx]s|d(&[ol]))$/)?0:1; + sex2 = selector.match(/,([mw]|[olx]s|d(&[ol])?)$/)?0:1; var getId = function(selector){ var s=''; if(!hash[selector]){ @@ -834,7 +834,7 @@ window.relationship = relationship; })(window); -// console.log(relationship({text:'表姐的表哥'})); +// console.log(relationship({text:'爸爸的妈妈的老公的儿子的女儿'})); //老婆的老公 //老公的老婆的儿子的爸爸的老婆的儿子的爸爸 //我的三舅的儿子的爸爸的妹妹的儿子的叔叔的哥哥