(filePath: string)
| 77 | * 获取格式的预处理器(如果有) |
| 78 | */ |
| 79 | export function getPreprocessor(filePath: string) { |
| 80 | const feature = sniffer.sniff(filePath) |
| 81 | if (!feature) return null |
| 82 | |
| 83 | const module = formats.find((m) => m.feature.id === feature.id) |
| 84 | return module?.preprocessor || null |
| 85 | } |
| 86 | |
| 87 | /** |
| 88 | * 扫描多聊天文件中的聊天列表 |
no test coverage detected