feat(sidebar): decompose tree item runtime

This commit is contained in:
t8y2 committed 2026-07-16 22:52:10 +08:00
1 parent 1688ba74cd
commit 6660957153
38 files changed
+6498 -5294

No files matched your search

+1 -1
View File
@@ -84,7 +84,7 @@ function withDuplicateSuffix(fileName: string, index: number): string {
function sanitizePathStem(value: string): string {
return value
.trim()
.replace(/[<>:"/\\|?*\u0000-\u001f]+/g, "-")
.replace(/[<>:"/\\|?*\p{Cc}]+/gu, "-")
.replace(/\s+/g, "-")
.replace(/-+/g, "-")
.replace(/^[-.\s]+|[-.\s]+$/g, "")