MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / sanitizeFilename

Function sanitizeFilename

src/utils/conversationExport.ts:136–138  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

134 * 清理文件名中的非法字符
135 */
136export function sanitizeFilename(filename: string): string {
137 return filename.replace(/[/\\?%*:|"<>]/g, '_')
138}
139
140/**
141 * 导出对话到下载目录

Callers 1

exportConversationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected