add parameter for anonymization mask

This commit is contained in:
tdurieux
2021-04-07 15:09:59 +02:00
parent c11ae5eb7c
commit d9aa8cce10
5 changed files with 13 additions and 9 deletions

View File

@@ -322,7 +322,7 @@ module.exports.isFilePathValid = async (options) => {
}
let anonymizePath = options.path;
if (anonymizePath.indexOf("XXX") > -1) {
if (anonymizePath.indexOf(config.ANONYMIZATION_MASK) > -1) {
const files = await module.exports.getFileList({ repoConfig });
const file = getFile(files, options.path);