mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 15:17:03 +02:00
Skip numbers when classifying
This commit is contained in:
@@ -96,7 +96,7 @@ public class WorkerFts extends Worker {
|
||||
int start = boundary.first();
|
||||
for (int end = boundary.next(); end != BreakIterator.DONE; end = boundary.next()) {
|
||||
String word = text.substring(start, end);
|
||||
if (word.length() > 1)
|
||||
if (word.length() > 1 && !word.matches(".*\\d.*"))
|
||||
features.add(word);
|
||||
start = end;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user