🐛 查找替换中使用正则表达式后替换不正确 https://github.com/siyuan-note/siyuan/issues/6722

This commit is contained in:
Liang Ding 2022-11-28 16:30:08 +08:00
parent bc17efcaad
commit b6188c642e
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 8 additions and 7 deletions

View file

@ -18,6 +18,7 @@ package model
import (
"bytes"
"errors"
"path"
"regexp"
"strconv"
@ -169,7 +170,7 @@ func SearchRefBlock(id, rootID, keyword string, beforeLen int) (ret []*Block, ne
func FindReplace(keyword, replacement string, ids []string, method int) (err error) {
// method0文本1查询语法2SQL3正则表达式
if 1 == method || 2 == method {
util.PushMsg(Conf.Language(132), 5000)
err = errors.New(Conf.Language(132))
return
}