1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-05 22:57:29 +02:00

All: Search: More multi-language support, and started updating mobile app

This commit is contained in:
Laurent Cozic
2019-01-18 18:31:07 +00:00
parent 8fdc0bf17c
commit 42a674008f
6 changed files with 14 additions and 49 deletions

View File

@@ -298,9 +298,9 @@ class SearchEngine {
}
if (term.indexOf('*') >= 0) {
terms[col][i] = { type: 'regex', value: this.queryTermToRegex(term), scriptType: scriptType(term), originalValue: term };
terms[col][i] = { type: 'regex', value: term, scriptType: scriptType(term), valueRegex: this.queryTermToRegex(term) };
} else {
terms[col][i] = { type: 'text', value: term, scriptType: scriptType(term), originalValue: term };
terms[col][i] = { type: 'text', value: term, scriptType: scriptType(term) };
}
}
@@ -373,18 +373,6 @@ class SearchEngine {
}
}
}
static runInBackground() {
if (this.isRunningInBackground_) return;
this.isRunningInBackground_ = true;
this.instance().syncTables();
setTimeout(() => {
this.instance().syncTables();
}, 1000 * 60 * 5);
}
}