修复昵称中含有\导致的导出失败问题#306

This commit is contained in:
shuaikangzhou 2024-01-13 13:53:43 +08:00
parent 77b272f6af
commit abefd3c8ea

View File

@ -75,7 +75,7 @@ class Contact(Person):
self.nickName = contact_info.get('NickName')
if not self.remark:
self.remark = self.nickName
self.remark = re.sub(r'[\/:*?"<>|\s\.]', '_', self.remark)
self.remark = re.sub(r'[\\/:*?"<>|\s\.]', '_', self.remark)
self.smallHeadImgUrl = contact_info.get('smallHeadImgUrl')
self.smallHeadImgBLOG = b''
self.avatar = QPixmap()