Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/packages/text_search.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,15 @@ fn split_and_normalise_words(text: String) -> List(String) {
|> string.replace(".", " ")
|> string.replace("!", " ")
|> string.replace("/", " ")
|> string.replace("(", " ")
|> string.replace(")", " ")
|> string.replace("[", " ")
|> string.replace("]", " ")
|> string.replace(":", " ")
|> string.replace(";", " ")
|> string.replace("?", " ")
|> string.replace("—", " ")
|> string.replace("\"", "")
|> string.replace("'", "")
|> string.split(" ")
|> list.filter(fn(word) { word != "" })
Expand Down