forked from svrjs/svrjs
Fixed checkEXT function
This commit is contained in:
parent
d31d47bbcd
commit
bfcc88a4dd
1 changed files with 1 additions and 1 deletions
2
svr.js
2
svr.js
|
@ -3760,7 +3760,7 @@ if (!cluster.isPrimary) {
|
|||
getStatsForAllFiles(list, "." + decodeURIComponent(href), function (filelist) {
|
||||
// Function to check file extension
|
||||
function checkEXT(filename, ext) {
|
||||
return filename.match(new RegExp("\\." + ext.replace(/([.+*?^$()\[\]{}|\\])/,"\\$1") + "$","i"));
|
||||
return filename.match(new RegExp(ext.replace(/([.+*?^$()\[\]{}|\\])/,"\\$1") + "$","i"));
|
||||
}
|
||||
|
||||
var directoryListingRows = [];
|
||||
|
|
Reference in a new issue