提交 adcb6dec 编写于 作者: L lijiarui 提交者: Huan (李卓桓)

room-join cannot detect inviteeList when people join in the room with qrcode (#651)

* change reg

* add test

* remove undefine

* add compatible
上级 713f1348
......@@ -91,6 +91,11 @@ test('parseRoomJoin()', t => {
`你`,
['桔小秘'],
],
[
`" 桔小秘"通过扫描"李佳芮"分享的二维码加入群聊`,
`李佳芮`,
['桔小秘'],
],
[
`"桔小秘"通过扫描"李佳芮"分享的二维码加入群聊`,
`李佳芮`,
......@@ -101,6 +106,11 @@ test('parseRoomJoin()', t => {
`your`,
['桔小秘'],
],
[
`" 桔小秘" joined the group chat via the QR Code shared by "李佳芮".`,
`李佳芮`,
['桔小秘'],
],
[
`"桔小秘" joined the group chat via the QR Code shared by "李佳芮".`,
`李佳芮`,
......
......@@ -59,8 +59,10 @@ const regexConfig = {
],
roomJoinQrcode: [
/^" (.+)" joined the group chat via the QR Code shared by "?(.+?)".$/,
/^"(.+)" joined the group chat via the QR Code shared by "?(.+?)".$/,
/^"(.+)" joined the group chat via "?(.+?)"? shared QR Code.$/,
/^" (.+)"通过扫描"?(.+?)"?分享的二维码加入群聊$/,
/^"(.+)"通过扫描"?(.+?)"?分享的二维码加入群聊$/,
],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册