Skip to content

Commit c7ad8a0

Browse files
committed
2 parents 87935b2 + 5159df7 commit c7ad8a0

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

README.md

+24-24
Original file line numberDiff line numberDiff line change
@@ -390,30 +390,30 @@ This is by default setup as following:
390390
// vType: is the file mime type
391391
// vName: is the file name
392392
{
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+
},
417417
}
418418
```
419419

0 commit comments

Comments
 (0)