From 53dc36d25ad964ac8d0c732dbe324e9549c41899 Mon Sep 17 00:00:00 2001 From: Mike Colagrosso Date: Mon, 22 Jan 2024 20:33:11 -0700 Subject: [PATCH] Fix searching for words adjacent to an underscore in EbookWwwFilesystemPath --- lib/Library.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Library.php b/lib/Library.php index 243a1108..2faa4e16 100644 --- a/lib/Library.php +++ b/lib/Library.php @@ -237,7 +237,7 @@ class Library{ left join Tags t using (TagId) where ' . $statusCondition . ' and (art.Name regexp ? - or art.EbookWwwFilesystemPath regexp ? + or replace(art.EbookWwwFilesystemPath, "_", " ") regexp ? or a.Name regexp ? or aan.Name regexp ? or t.Name regexp ?)