diff options
| author | Joris | 2022-07-09 20:06:54 +0200 |
|---|---|---|
| committer | Joris | 2022-07-09 20:06:54 +0200 |
| commit | 72061e8cefc03d12264c006dfd90cb1ee5310d3e (patch) | |
| tree | d3c11c69de9cee12e1d736f76e69fda25d65c037 /src/utils | |
| parent | 79cde4e391395e7397fa5215797055a7e7ed88cd (diff) | |
Fix payment search by sub word
It tried to search for exact words, minus accents and case. Use the same
method that was successfully working when searching a category.
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/text.rs | 2 |
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 { |
