1
0
Fork 0
forked from svrjs/svrjs

Fixed checkEXT function

This commit is contained in:
Dorian Niemiec 2023-08-19 23:16:27 +02:00
parent d31d47bbcd
commit bfcc88a4dd

2
svr.js
View file

@ -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 = [];