提交 4089b0de 编写于 作者: ruiruibupt's avatar ruiruibupt

rix regexp

上级 1c58f9d3
......@@ -995,10 +995,8 @@ export class PadchatRpc extends EventEmitter {
}
// BUG compitable: "\n\u00135907139882@chatroom" -> "5907139882@chatroom"
// BUG compitable: "\n\u001412558026334@chatroom" -> "12558026334@chatroom"
if (/^\n\u/.test(result.user_name)) {
result.user_name.replace(/^\n\u\d{4}/g, '')
}
return result.user_name }
return result.user_name.replace(/^\n[\u0000-\uffff]/g, '')
}
// TODO: check any
// TODO: don't know the difference between WXAddChatRoomMember
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册