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 <rootcommander@gmail.com>
This commit is contained in:
Tobias Speicher 2022-03-22 10:02:41 +01:00
parent de277c88c7
commit 522189ec36
No known key found for this signature in database
GPG Key ID: 2CF824BD810C3BDB

View File

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