aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/text.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/text.rs b/src/utils/text.rs
index c07ccee..3a6f495 100644
--- a/src/utils/text.rs
+++ b/src/utils/text.rs
@@ -1,5 +1,5 @@
pub fn format_search(str: &String) -> String {
- unaccent(&str.to_lowercase())
+ format!("%{}%", unaccent(&str.to_lowercase()))
}
pub fn unaccent(str: &String) -> String {