mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve error tip when renaming tags/bookmarks containing Markdown markers Fix https://github.com/siyuan-note/siyuan/issues/9248
This commit is contained in:
parent
20cd3c5f80
commit
4283f73407
8 changed files with 13 additions and 13 deletions
|
|
@ -105,8 +105,8 @@ func RemoveTag(label string) (err error) {
|
|||
}
|
||||
|
||||
func RenameTag(oldLabel, newLabel string) (err error) {
|
||||
if treenode.ContainsMarker(newLabel) {
|
||||
return errors.New(Conf.Language(112))
|
||||
if invalidChar := treenode.ContainsMarker(newLabel); "" != invalidChar {
|
||||
return errors.New(fmt.Sprintf(Conf.Language(112), invalidChar))
|
||||
}
|
||||
|
||||
newLabel = strings.TrimSpace(newLabel)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue