MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / extractNameFromFilePath

Function extractNameFromFilePath

packages/parser/src/formats/instagram-native.ts:130–133  ·  view source on GitHub ↗

* 从文件名提取名称(备用)

(filePath: string)

Source from the content-addressed store, hash-verified

128 * 从文件名提取名称(备用)
129 */
130function extractNameFromFilePath(filePath: string): string {
131 const basename = path.basename(filePath)
132 return basename.replace(/\.json$/i, '') || '未知对话'
133}
134
135/**
136 * 判断是否为系统消息

Callers 1

parseInstagramFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected