mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-03-04 03:43:20 +00:00
add parameter for anonymization mask
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user