mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 移动端支持多工作空间 Fix https://github.com/siyuan-note/siyuan/issues/4642
This commit is contained in:
parent
0fb04830db
commit
43cc09af8d
1 changed files with 4 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
"unicode/utf8"
|
||||||
|
|
||||||
"github.com/88250/gulu"
|
"github.com/88250/gulu"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
|
@ -233,5 +234,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) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
return "siyuan" == name || "conf" == name || "home" == name || "data" == name || "temp" == name
|
return "siyuan" == name || "conf" == name || "home" == name || "data" == name || "temp" == name
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue