@@ -390,30 +390,30 @@ This is by default setup as following:
390
390
// vType: is the file mime type
391
391
// vName: is the file name
392
392
{
393
- image : function (vType , vName ) {
394
- return (typeof vType !== " undefined" ) ? vType .match (' image.*' ) : vName .match (/ \. (gif| png| jpe? g)$ / i );
395
- },
396
- html : function (vType , vName ) {
397
- return (typeof vType !== " undefined" ) ? vType == ' text/html' : vName .match (/ \. (htm| html)$ / i );
398
- },
399
- text : function (vType , vName ) {
400
- return ( typeof vType !== " undefined" ) ? vType .match (' text.*' ) : vName .match (/ \. (txt| md| csv| nfo| php| ini)$ / i );
401
- },
402
- video : function (vType , vName ) {
403
- return ( typeof vType !== " undefined" && vType .match (/ \. video\/ (ogg| mp4| webm)$ / i) ) || vName .match (/ \. (og? | mp4| webm)$ / i );
404
- },
405
- audio : function (vType , vName ) {
406
- return ( typeof vType !== " undefined" && vType .match (/ \. audio\/ (ogg| mp3| wav)$ / i) ) || vName .match (/ \. (ogg| mp3| wav)$ / i );
407
- },
408
- flash : function (vType , vName ) {
409
- return ( typeof vType !== " undefined" && vType == ' application/x-shockwave-flash' ) || vName .match (/ \. (swf)$ / i );
410
- },
411
- object : function (vType , vName ) {
412
- return true ;
413
- },
414
- other : function (vType , vName ) {
415
- return true ;
416
- },
393
+ image : function (vType , vName ) {
394
+ return (typeof vType !== " undefined" ) ? vType .match (' image.*' ) : vName .match (/ \. (gif| png| jpe? g)$ / i );
395
+ },
396
+ html : function (vType , vName ) {
397
+ return (typeof vType !== " undefined" ) ? vType == ' text/html' : vName .match (/ \. (htm| html)$ / i );
398
+ },
399
+ text : function (vType , vName ) {
400
+ return typeof vType !== " undefined" && vType .match (' text.*' ) || vName .match (/ \. (txt| md| csv| nfo| php| ini)$ / i );
401
+ },
402
+ video : function (vType , vName ) {
403
+ return typeof vType !== " undefined" && vType .match (/ \. video\/ (ogg| mp4| webm)$ / i ) || vName .match (/ \. (og? | mp4| webm)$ / i );
404
+ },
405
+ audio : function (vType , vName ) {
406
+ return typeof vType !== " undefined" && vType .match (/ \. audio\/ (ogg| mp3| wav)$ / i ) || vName .match (/ \. (ogg| mp3| wav)$ / i );
407
+ },
408
+ flash : function (vType , vName ) {
409
+ return typeof vType !== " undefined" && vType == ' application/x-shockwave-flash' || vName .match (/ \. (swf)$ / i );
410
+ },
411
+ object : function (vType , vName ) {
412
+ return true ;
413
+ },
414
+ other : function (vType , vName ) {
415
+ return true ;
416
+ },
417
417
}
418
418
```
419
419
0 commit comments