mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 09:47:13 +00:00
Break query text
This commit is contained in:
parent
c6c5419a72
commit
6eb128ab81
1 changed files with 2 additions and 4 deletions
|
@ -185,9 +185,7 @@ public class Fts4DbHelper extends SQLiteOpenHelper {
|
||||||
Long account, Long folder, long[] exclude,
|
Long account, Long folder, long[] exclude,
|
||||||
BoundaryCallbackMessages.SearchCriteria criteria) {
|
BoundaryCallbackMessages.SearchCriteria criteria) {
|
||||||
|
|
||||||
String query = criteria.query.trim();
|
String query = breakText(criteria.query.trim());
|
||||||
query = Normalizer.normalize(query, Normalizer.Form.NFKD)
|
|
||||||
.replaceAll("[\\p{InCombiningDiacriticalMarks}]", "");
|
|
||||||
|
|
||||||
List<String> word = new ArrayList<>();
|
List<String> word = new ArrayList<>();
|
||||||
List<String> plus = new ArrayList<>();
|
List<String> plus = new ArrayList<>();
|
||||||
|
@ -242,7 +240,7 @@ public class Fts4DbHelper extends SQLiteOpenHelper {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
String search = (sb.length() > 0 ? sb.toString() : escape(criteria.query));
|
String search = (sb.length() > 0 ? sb.toString() : escape(query));
|
||||||
|
|
||||||
String select = "";
|
String select = "";
|
||||||
if (account != null)
|
if (account != null)
|
||||||
|
|
Loading…
Reference in a new issue