🎨 改进虚拟引用和反链提及搜索分词 Fix https://github.com/siyuan-note/siyuan/issues/6298
This commit is contained in:
parent
c61204840c
commit
23899f762c
1 changed files with 2 additions and 2 deletions
|
@ -701,8 +701,8 @@ func markReplaceSpan(text string, keywords []string, replacementStart, replaceme
|
|||
return
|
||||
}
|
||||
|
||||
// 包含非 ASCII 字符或者空格时再试试不分词匹配
|
||||
if !gulu.Str.IsASCII(text) || strings.Contains(text, " ") {
|
||||
// 非 ASCII 文本并且不包含空格时再试试不分词匹配
|
||||
if !gulu.Str.IsASCII(text) && !strings.Contains(text, " ") {
|
||||
ret = search.EncloseHighlighting(text, keywords, replacementStart, replacementEnd, Conf.Search.CaseSensitive)
|
||||
}
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue