🎨 Global search supports searching with tabs https://github.com/siyuan-note/siyuan/issues/14632

This commit is contained in:
Daniel 2025-04-18 10:22:26 +08:00
parent c142087796
commit 8c95f47fd5
No known key found for this signature in database
GPG Key ID: 86211BA83DF03017

View File

@ -2195,8 +2195,10 @@ func getRefSearchIgnoreLines() (ret []string) {
func filterQueryInvisibleChars(query string) string {
query = strings.ReplaceAll(query, " ", "_@full_width_space@_")
query = strings.ReplaceAll(query, "\t", "_@tab@_")
query = util.RemoveInvalid(query)
query = strings.ReplaceAll(query, "_@full_width_space@_", " ")
query = strings.ReplaceAll(query, "_@tab@_", "\t")
return query
}