mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-12 07:00:04 +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
|
// Loop results
|
||||||
$.each(schemasCount, function(schema, hits){
|
$.each(schemasCount, function(schema, hits){
|
||||||
// IF TEST CONTINUE
|
// IF TEST CONTINUE
|
||||||
if(schema.substr(schema.length - 4) == 'test')
|
if(schema.slice(-4) == 'test')
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var slug = makeSlug(schema);
|
var slug = makeSlug(schema);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user