Formerly KrillinAI, VideoTranslation and Dubbing Tool for 120+ Languages. Open-source AI workspace for creators, powered by Codex. Video downloader, video translation, create videos, images, audios, and edits with Agents in one place. For your Social Media like YouTube, TikTok, Instagram, etc.
TypeScript agent-skillscodex-clideskop-appdubbingimage-generationlocalizationskillsttsvideo-editingvideo-generationvideo-transcriptionvideo-translation
Merge pull request #250 from scwf/fix-bugs
Maranello90aa948fd72e
diff --cc pkg/util/base.goindex ff44b76e,2792c6d6..761f143c--- a/pkg/util/base.go+++ b/pkg/util/base.go@@@ -191,15 -191,13 +191,15 @@@ func CopyFile(src, dst string) error// SanitizePathName 清理字符串,使其成为合法路径名func SanitizePathName(name string) string {+ name = strings.ReplaceAll(name, ".", "_")+var illegalChars *regexp.Regexpif runtime.GOOS == "windows" {- // Windows 特殊字符- illegalChars = regexp.MustCompile(`[<>:"/\\|?*\x00-\x1F]`)+ // Windows 特殊字符,包括方括号(会影响 filepath.Glob)+ illegalChars = regexp.MustCompile(`[<>:"/\\|?*\[\]\x00-\x1F]`)} else {- // POSIX 系统:只禁用 / 和空字节- illegalChars = regexp.MustCompile(`[/\x00]`)+ // POSIX 系统:禁用 /、空字节和方括号(会影响 filepath.Glob)+ illegalChars = regexp.MustCompile(`[/\[\]\x00]`)}sanitized := illegalChars.ReplaceAllString(name, "_")