diff --git a/.gitignore b/.gitignore index 3e27090..93f6714 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ +.vscode *.swp *.swo .env node_modules docs/ -test-images/ \ No newline at end of file +test-images/ diff --git a/src/common.js b/src/common.js index 1150eda..6031a8d 100644 --- a/src/common.js +++ b/src/common.js @@ -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()}`; });