1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Desktop: Search engine: Improved support for JA, KO, ZH scripts

This commit is contained in:
Laurent Cozic
2019-01-15 19:55:58 +00:00
parent 384ca09842
commit 8dc0b34fdc
4 changed files with 18 additions and 7 deletions

View File

@ -298,7 +298,9 @@ class SearchEngine {
}
if (term.indexOf('*') >= 0) {
terms[col][i] = { type: 'regex', value: this.queryTermToRegex(term) };
terms[col][i] = { type: 'regex', value: this.queryTermToRegex(term), scriptType: scriptType(term) };
} else {
terms[col][i] = { type: 'text', value: term, scriptType: scriptType(term) };
}
}