More regex changes...
This commit is contained in:
@@ -106,7 +106,7 @@ Common.getParamsFromFolders = async function() {
|
||||
*/
|
||||
Common.getImageList = async function (manifestId) {
|
||||
// Regex to exclude images with certain patterns in filename
|
||||
const regexFilter = /(c2r|copertin.|camice|tit)/ig;
|
||||
const regexFilter = new RegExp(/(c2r|copertin.|camice|tit)/, 'i');
|
||||
let folderName = manifestId.replace(/pherc-(\d+)-(\w+)$/, function (_match, g1, g2) {
|
||||
return `PHerc_${g1}_${g2.toUpperCase()}`;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user