new mechanism to wait for sync after interaction with backend in Script API using api.waitForMaxKnownSyncId()

This commit is contained in:
zadam
2019-12-09 23:07:45 +01:00
parent 1e123f2390
commit 6f32d6fabe
7 changed files with 89 additions and 31 deletions

View File

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