const path = require('path');

const regexdir = path.join(__dirname, 'regexdir');
const unsafefile = path.join(__dirname, 'regexdir', 'unsafe.js');
const safefile = path.join(__dirname, 'regexdir', 'safe.js');
const emptydir = path.join(__dirname, 'regexdir', 'emptydir');
const phantompath = 'xgkskfdhflhg0965(rèlgjldfsdjdslfjslfl';
const unsaferegex = /(safe-regex-cli+){10}/;

// key = the regex | value = string data where the regex can be found
let unsafemap = new Map();
unsafemap.set('/(safe+){10}/', ' /(safe+){10}/ ');
unsafemap.set('/(regex-cli+/]){10}/i', '//(regex-cli+){10}/i');
unsafemap.set('/(cli+){10}/g', '  /(cli+){10}/g  ');
unsafemap.set('/(safe-regex-cli+){10}/g', ' const myRegex = new RegExp("(safe-regex-cli+){10}", "g");');
unsafemap.set('/(safe-regex-cli+){10}/gi', ' const myRegex = new RegExp ( "(safe-regex-cli+){10}","gi") ;');

module.exports = {
  regexdir,
  unsafefile,
  safefile,
  emptydir,
  phantompath,
  unsaferegex,
  unsafemap
};

@@ -377,488 +377,8 @@
 /;%0A%0A
-// key = the regex %7C value = string data where the regex can be found%0Alet unsafemap = new Map();%0Aunsafemap.set('/(safe+)%7B10%7D/', ' /(safe+)%7B10%7D/ ');%0Aunsafemap.set('/(regex-cli+/%5D)%7B10%7D/i', '//(regex-cli+)%7B10%7D/i');%0Aunsafemap.set('/(cli+)%7B10%7D/g', '  /(cli+)%7B10%7D/g  ');%0Aunsafemap.set('/(safe-regex-cli+)%7B10%7D/g', ' const myRegex = new RegExp(%22(safe-regex-cli+)%7B10%7D%22, %22g%22);');%0Aunsafemap.set('/(safe-regex-cli+)%7B10%7D/gi', ' const myRegex = new RegExp ( %22(safe-regex-cli+)%7B10%7D%22,%22gi%22) ;');%0A%0A
 modu

delete map to test unsafe regex