From c629a063512201a4b2b57594145aeb00f696eba0 Mon Sep 17 00:00:00 2001 From: mumuy Date: Thu, 28 Apr 2016 17:18:24 +0800 Subject: [PATCH] =?UTF-8?q?updated=20=E6=8B=86=E5=88=86=E5=A4=8D=E5=90=88?= =?UTF-8?q?=E7=A7=B0=E8=B0=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/relationship.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/script/relationship.js b/script/relationship.js index 98b798f..b1180f2 100644 --- a/script/relationship.js +++ b/script/relationship.js @@ -109,6 +109,10 @@ exp:/^,[olx][sb],[olx]s(.+)?$/, str:'$1#,xs$1' }, + {//将复合称谓拆分 + exp:/^,x([sb])$/, + str:',o$1#,l$1' + }, /* 孩子 */ {//孩子的姐妹是自己的女儿(年龄判断) exp:/,[ds]&o,ob/g, @@ -715,7 +719,7 @@ window.relationship = relationship; })(window); -// console.log(relationship({text:'姐姐的弟弟的女儿',sex:1,reverse:true})); +// console.log(relationship({text:'姐姐的妹妹的姐姐',sex:1})); //老公的老婆的儿子的爸爸的老婆的儿子的爸爸 //我的三舅的儿子的爸爸的妹妹的儿子的叔叔的哥哥 //老婆的外孙的姥姥