mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-12 07:00:04 +03:00
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:
parent
de277c88c7
commit
522189ec36
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user