♻️ 一些字符串操作函数移到 Gulu 项目里

This commit is contained in:
Liang Ding 2022-06-11 11:32:00 +08:00
parent bb2fafccb1
commit c03fba9ff7
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
8 changed files with 15 additions and 111 deletions

View file

@ -1137,7 +1137,7 @@ func CreateCloudSyncDir(name string) (err error) {
defer syncLock.Unlock()
name = strings.TrimSpace(name)
name = util.RemoveInvisible(name)
name = gulu.Str.RemoveInvisible(name)
if !IsValidCloudDirName(name) {
return errors.New(Conf.Language(37))
}