提交 69c514de 编写于 作者: ruiruibupt's avatar ruiruibupt

add firer.spec.ts

上级 0db6b6fa
......@@ -64,9 +64,29 @@ test('parseRoomJoin()', t => {
]
, [
`你邀请"李佳芮"加入了群聊`
, ''
, `你`
, ['李佳芮']
]
, [
`"桔小秘"通过扫描你分享的二维码加入群聊`
, `你`
, ['桔小秘']
]
, [
`"桔小秘"通过扫描"李佳芮"分享的二维码加入群聊`
, `李佳芮`
, ['桔小秘']
]
, [
`"桔小秘" joined the group chat via your shared QR Code.`
, `your`
, ['桔小秘']
]
, [
`"桔小秘" joined the group chat via the QR Code shared by "李佳芮".`
, `李佳芮`
, ['桔小秘']
]
]
let result
......
......@@ -57,7 +57,8 @@ 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.
先完成此消息的编辑!
想要评论请 注册