mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 08:00:13 +01:00
🎨 Improve find-replace spaces https://github.com/siyuan-note/siyuan/issues/14924
This commit is contained in:
parent
e66b669dc3
commit
cf8acfa633
1 changed files with 0 additions and 1 deletions
|
|
@ -1042,7 +1042,6 @@ func replaceTextNode(text *ast.Node, method int, keyword string, replacement str
|
||||||
for _, k := range keywords {
|
for _, k := range keywords {
|
||||||
lowerKeywords = append(lowerKeywords, strings.ToLower(k))
|
lowerKeywords = append(lowerKeywords, strings.ToLower(k))
|
||||||
}
|
}
|
||||||
lowerKeywords = gulu.Str.RemoveDuplicatedElem(lowerKeywords)
|
|
||||||
keyword = strings.Join(lowerKeywords, " ")
|
keyword = strings.Join(lowerKeywords, " ")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue