🐛 Regular replacement text fails https://github.com/siyuan-note/siyuan/issues/11444
This commit is contained in:
parent
b670cdb29a
commit
ad58e1c0c9
1 changed files with 1 additions and 1 deletions
|
@ -803,7 +803,7 @@ func replaceTextNode(text *ast.Node, method int, keyword string, replacement str
|
|||
}
|
||||
} else if 3 == method {
|
||||
if nil != r && r.MatchString(string(text.Tokens)) {
|
||||
newContent := bytes.ReplaceAll(text.Tokens, []byte(keyword), []byte(replacement))
|
||||
newContent := []byte(r.ReplaceAllString(string(text.Tokens), replacement))
|
||||
tree := parse.Inline("", newContent, luteEngine.ParseOptions)
|
||||
if nil == tree.Root.FirstChild {
|
||||
return false
|
||||
|
|
Loading…
Add table
Reference in a new issue