mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-05-21 05:40:23 +08:00
feat: 聊天记录识别优化
This commit is contained in:
@@ -55,8 +55,9 @@ export const feature: FormatFeature = {
|
||||
priority: 10,
|
||||
extensions: ['.json'],
|
||||
signatures: {
|
||||
// 文件头签名已足够唯一识别,无需检查 messages(可能超出 8KB 检测范围)
|
||||
head: [/QQChatExporter V4/, /"version"\s*:\s*"4\./],
|
||||
requiredFields: ['metadata', 'chatInfo', 'messages'],
|
||||
requiredFields: ['metadata', 'chatInfo'],
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user