mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-28 20:40:06 +00:00
refactor: replace deprecated String.prototype.substr() (#3600)
.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
c9dcc93d4f
commit
e960357dcf
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ class Restricter {
|
|||
|
||||
// otherwise this is likely an extension
|
||||
if (type[0] === '.' && file.extension) {
|
||||
return file.extension.toLowerCase() === type.substr(1).toLowerCase()
|
||||
return file.extension.toLowerCase() === type.slice(1).toLowerCase()
|
||||
}
|
||||
return false
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue