Fix CI tests

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König
2023-07-22 16:26:56 +02:00
parent 415cf7ae5c
commit 879cdc4138
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ function computeInterval(from, until) {
preverr = err;
}
return intervals[intervals.length - 1];
return intervals.at(-1);
}
function updateQueriesOverTime() {
+3 -3
View File
@@ -19,7 +19,7 @@ function escapeHtml(text) {
if (text === null) return null;
return text.replace(/[&<>"']/g, function (m) {
return text.replaceAll(/[&<>"']/, function (m) {
return map[m];
});
}
@@ -42,8 +42,8 @@ function unescapeHtml(text) {
if (text === null) return null;
return text.replace(
/&(?:amp|lt|gt|quot|#039|Uuml|uuml|Auml|auml|Ouml|ouml|szlig);/g,
return text.replaceAll(
/&(?:amp|lt|gt|quot|#039|Uuml|uuml|Auml|auml|Ouml|ouml|szlig);/,
function (m) {
return map[m];
}