feat(sidebar): decompose tree item runtime
This commit is contained in:
1 parent
1688ba74cd
commit
6660957153
38 files changed
+6498
-5294
No files matched your search
@@ -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, "")
|
||||
|
||||
Reference in new issue
Block a user