support unicode characters in filters without quotes, fixes #757

This commit is contained in:
zadam
2019-12-09 19:38:48 +01:00
parent af695802e3
commit 7554cb057b
3 changed files with 3 additions and 3 deletions

View File

@@ -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) {