From 522189ec36f28e25fc387fd8fd905fca5b4e43a6 Mon Sep 17 00:00:00 2001 From: Tobias Speicher Date: Tue, 22 Mar 2022 10:02:41 +0100 Subject: [PATCH] refactor: replace deprecated String.prototype.substr() .substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated Signed-off-by: Tobias Speicher --- contrib/monitor/schemas.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/monitor/schemas.html b/contrib/monitor/schemas.html index 4940b3b..d9c2aa5 100644 --- a/contrib/monitor/schemas.html +++ b/contrib/monitor/schemas.html @@ -241,7 +241,7 @@ // Loop results $.each(schemasCount, function(schema, hits){ // IF TEST CONTINUE - if(schema.substr(schema.length - 4) == 'test') + if(schema.slice(-4) == 'test') return; var slug = makeSlug(schema);