forked from svrjs/svrjs
Fixed checkEXT again
This commit is contained in:
parent
bfcc88a4dd
commit
e6c1194086
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(/^\./,"").replace(/([.+*?^$()\[\]{}|\\])/,"\\$1") + "$","i"));
|
||||
}
|
||||
|
||||
var directoryListingRows = [];
|
||||
|
|
Reference in a new issue