mirror of
https://github.com/bower/bower.git
synced 2026-04-24 03:00:19 -04:00
13 lines
337 B
JavaScript
13 lines
337 B
JavaScript
var extName = require('ext-name');
|
|
|
|
function isAsset(filename) {
|
|
var info = extName(filename);
|
|
|
|
return info && info.mime && (
|
|
/^((image)|(audio)|(video)|(font))\//.test(info.mime) ||
|
|
/application\/((x[-]font[-])|(font[-]woff(\d?))|(vnd[.]ms[-]fontobject))/.test(info.mime)
|
|
);
|
|
}
|
|
|
|
module.exports = isAsset;
|