mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 15:28:49 +01:00
🎨 改进创建快照备注和标记快照名称校验
This commit is contained in:
parent
f8a1d5c81d
commit
1fa2140bc3
1 changed files with 2 additions and 0 deletions
|
|
@ -378,6 +378,7 @@ func TagSnapshot(id, name string) (err error) {
|
|||
return
|
||||
}
|
||||
|
||||
name = strings.TrimSpace(name)
|
||||
name = gulu.Str.RemoveInvisible(name)
|
||||
if "" == name {
|
||||
err = errors.New(Conf.Language(142))
|
||||
|
|
@ -413,6 +414,7 @@ func IndexRepo(memo string) (err error) {
|
|||
return
|
||||
}
|
||||
|
||||
memo = strings.TrimSpace(memo)
|
||||
memo = gulu.Str.RemoveInvisible(memo)
|
||||
if "" == memo {
|
||||
err = errors.New(Conf.Language(142))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue