mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-12 18:24:21 +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
|
|
@ -75,8 +75,8 @@ func RemoveBookmark(bookmark string) (err error) {
|
|||
}
|
||||
|
||||
func RenameBookmark(oldBookmark, newBookmark string) (err error) {
|
||||
if treenode.ContainsMarker(newBookmark) {
|
||||
return errors.New(Conf.Language(112))
|
||||
if invalidChar := treenode.ContainsMarker(newBookmark); "" != invalidChar {
|
||||
return errors.New(fmt.Sprintf(Conf.Language(112), invalidChar))
|
||||
}
|
||||
|
||||
newBookmark = strings.TrimSpace(newBookmark)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue