diff --git a/src/public/javascripts/services/utils.js b/src/public/javascripts/services/utils.js index 3586c5b75..d6c311f14 100644 --- a/src/public/javascripts/services/utils.js +++ b/src/public/javascripts/services/utils.js @@ -77,7 +77,7 @@ async function stopWatch(what, func) { } function formatValueWithWhitespace(val) { - return /[^\p{L}_-]/u.test(val) ? '"' + val + '"' : val; + return /[^\w_-]/.test(val) ? '"' + val + '"' : val; } function formatLabel(label) {