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

This commit is contained in:
Daniel 2023-10-16 18:00:27 +08:00
parent 996d160d8b
commit 785f467a99
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -331,7 +331,8 @@ func isInvalidWorkspacePath(absPath string) bool {
if !gulu.File.IsValidFilename(name) { if !gulu.File.IsValidFilename(name) {
return true 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 return true
} }
toLower := strings.ToLower(name) toLower := strings.ToLower(name)