From 785f467a99d672c74d413fecbb31051dbea15c9d Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 16 Oct 2023 18:00:27 +0800 Subject: [PATCH] :art: Adjust workspace name length limit to 32 runes Fix https://github.com/siyuan-note/siyuan/issues/9440 --- kernel/api/workspace.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/api/workspace.go b/kernel/api/workspace.go index 1b65d95f4..0e210e2c2 100644 --- a/kernel/api/workspace.go +++ b/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)