mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
support unicode characters in filters without quotes, fixes #757
This commit is contained in:
@@ -77,7 +77,7 @@ async function stopWatch(what, func) {
|
||||
}
|
||||
|
||||
function formatValueWithWhitespace(val) {
|
||||
return /[^\w_-]/.test(val) ? '"' + val + '"' : val;
|
||||
return /[^\p{L}_-]/u.test(val) ? '"' + val + '"' : val;
|
||||
}
|
||||
|
||||
function formatLabel(label) {
|
||||
|
||||
Reference in New Issue
Block a user