1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-09-09 09:19:54 +00:00

better search tools

This commit is contained in:
Laura
2025-08-14 17:08:45 +02:00
parent 5d44980510
commit 0b51ee9dad
17 changed files with 335 additions and 102 deletions

20
clean.go Normal file
View File

@@ -0,0 +1,20 @@
package main
import "strings"
var cleaner = strings.NewReplacer(
"", "-",
"—", "-",
"“", "\"",
"”", "\"",
"", "'",
)
func CleanChunk(chunk string) string {
if !CleanContent {
return chunk
}
return cleaner.Replace(chunk)
}