Browse Source

:art: Adjust workspace name length limit to 32 runes Fix https://github.com/siyuan-note/siyuan/issues/9440

Daniel 1 năm trước cách đây
mục cha
commit
785f467a99
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      kernel/api/workspace.go

+ 2 - 1
kernel/api/workspace.go

@@ -331,7 +331,8 @@ func isInvalidWorkspacePath(absPath string) bool {
 	if !gulu.File.IsValidFilename(name) {
 		return true
 	}
-	if 16 < utf8.RuneCountInString(name) {
+	if 32 < utf8.RuneCountInString(name) {
+		// Adjust workspace name length limit to 32 runes https://github.com/siyuan-note/siyuan/issues/9440
 		return true
 	}
 	toLower := strings.ToLower(name)