mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-04 19:30:01 +03:00
Merge pull request #184 from CommanderRoot/refactor/rm-deprecated-substr
refactor: replace deprecated String.prototype.substr()
This commit is contained in:
commit
f8245d8bc2
@ -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