mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-04 03:01:14 +08:00
🎨 改进云端同步目录名称校验 Fix https://github.com/siyuan-note/siyuan/issues/5090
This commit is contained in:
parent
f821e0284b
commit
2290926f16
@ -1213,10 +1213,6 @@ func formatErrorMsg(err error) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func IsValidCloudDirName(cloudDirName string) bool {
|
func IsValidCloudDirName(cloudDirName string) bool {
|
||||||
if "backup" == cloudDirName {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
if 16 < utf8.RuneCountInString(cloudDirName) {
|
if 16 < utf8.RuneCountInString(cloudDirName) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user