From 1193eda4cad26cb18433c63925ba2a73f0d5a585 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Mon, 19 Jan 2026 21:03:42 +0000 Subject: [PATCH] Escape "." in searches --- lib/music_library/records.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/music_library/records.ex b/lib/music_library/records.ex index 602ffd8e..fd5e0cd7 100644 --- a/lib/music_library/records.ex +++ b/lib/music_library/records.ex @@ -45,7 +45,7 @@ defmodule MusicLibrary.Records do defp fts_escape(term) do # For FTS5, if the term contains special characters, we need to wrap it in double quotes - if String.contains?(term, ["'", " ", "\"", "(", ")", "^", "-", ":", "?"]) do + if String.contains?(term, ["'", " ", "\"", "(", ")", "^", "-", ":", "?", "."]) do # Escape internal double quotes and wrap in double quotes escaped = String.replace(term, "\"", "\"\"") "\"#{escaped}\"*"