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

Started rewriting search engine to better support unicode

This commit is contained in:
Laurent Cozic
2018-12-29 20:19:18 +01:00
parent f308fe71f9
commit 41155f5ef4
7 changed files with 123 additions and 8 deletions

View File

@ -229,6 +229,8 @@ function pregQuote(str, delimiter = '') {
}
function surroundKeywords(keywords, text, prefix, suffix) {
if (!keywords.length) return text;
let regexString = keywords.map((k) => {
if (k.type === 'regex') {
return k.value;