mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(view) isAudio, isVideo regExp
This commit is contained in:
parent
25eda7cb0b
commit
75e0d491aa
1 changed files with 2 additions and 2 deletions
|
|
@ -164,7 +164,7 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
function isAudio(name) {
|
||||
var isMatch,
|
||||
isStr = Util.isString(name),
|
||||
exts = '.mp3|.ogg',
|
||||
exts = '\\.(mp3|ogg)$',
|
||||
extsReg = new RegExp(exts);
|
||||
|
||||
if (isStr)
|
||||
|
|
@ -176,7 +176,7 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
function isVideo(name) {
|
||||
var isMatch,
|
||||
isStr = Util.isString(name),
|
||||
exts = '.mp4|.avi',
|
||||
exts = '\\.(mp4|avi)$',
|
||||
extsReg = new RegExp(exts);
|
||||
|
||||
if (isStr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue