From 48df4f2965c75cb9450a1f30852bb4b876d54673 Mon Sep 17 00:00:00 2001 From: LyAhn Date: Mon, 6 Jul 2026 20:53:14 +0100 Subject: [PATCH] style: Format db.rs --- src-tauri/src/db.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src-tauri/src/db.rs b/src-tauri/src/db.rs index e5debf9..adba08c 100644 --- a/src-tauri/src/db.rs +++ b/src-tauri/src/db.rs @@ -1308,7 +1308,10 @@ fn media_kind_clause(include_videos: bool) -> &'static str { /// in a `LIKE` pattern (paired with `ESCAPE '\\'` in the query) without the /// wildcards being interpreted literally. fn escape_like_pattern(value: &str) -> String { - value.replace('\\', "\\\\").replace('%', "\\%").replace('_', "\\_") + value + .replace('\\', "\\\\") + .replace('%', "\\%") + .replace('_', "\\_") } /// True if any claimable (pending, non-excluded) jobs exist in `job_table`.