console.log(reg);
\/
.*
console.log
before.js.reduce((pre, cur) => `${pre}${cur}.*`);
after.js.map(char => `${char}.*`) .join('');