Galerie und tage
This commit is contained in:
12
node_modules/is-gif/index.js
generated
vendored
12
node_modules/is-gif/index.js
generated
vendored
@@ -1,12 +1,10 @@
|
||||
'use strict';
|
||||
const fileType = require('file-type');
|
||||
|
||||
module.exports = input => {
|
||||
const match = fileType(input);
|
||||
|
||||
if (!match) {
|
||||
module.exports = function (buf) {
|
||||
if (!buf || buf.length < 3) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return match.ext === 'gif';
|
||||
return buf[0] === 71 &&
|
||||
buf[1] === 73 &&
|
||||
buf[2] === 70;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user