mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 08:48:49 +01:00
🎨 Improve cloud dir name check
This commit is contained in:
parent
5a8a7f946b
commit
072a97af90
2 changed files with 9 additions and 3 deletions
|
|
@ -1265,7 +1265,7 @@ func formatErrorMsg(err error) string {
|
|||
}
|
||||
|
||||
func IsValidCloudDirName(cloudDirName string) bool {
|
||||
if 16 < utf8.RuneCountInString(cloudDirName) {
|
||||
if 16 < utf8.RuneCountInString(cloudDirName) || 1 > utf8.RuneCountInString(cloudDirName) {
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue