mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-27 03:48:48 +01:00
🐛 Unable to search replace hyperlink anchor text https://github.com/siyuan-note/siyuan/issues/10689
This commit is contained in:
parent
c752df919a
commit
45df03aede
1 changed files with 1 additions and 1 deletions
|
|
@ -592,7 +592,7 @@ func FindReplace(keyword, replacement string, replaceTypes map[string]bool, ids
|
|||
} else if n.IsTextMarkType("a") {
|
||||
if replaceTypes["aText"] {
|
||||
if 0 == method {
|
||||
if bytes.Contains(n.Tokens, []byte(keyword)) {
|
||||
if strings.Contains(n.TextMarkTextContent, keyword) {
|
||||
n.TextMarkTextContent = strings.ReplaceAll(n.TextMarkTextContent, keyword, replacement)
|
||||
}
|
||||
} else if 3 == method {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue