refactor(util) getRegExp

This commit is contained in:
coderaiser 2017-08-02 11:20:02 +03:00
parent 73e464848f
commit 62f66c0c01

View file

@ -40,9 +40,7 @@ module.exports.getRegExp = (wildcard) => {
.replace('*', '.*')
.replace('?', '.?') + '$'; // search to end of line
const regExp = new RegExp(escaped);
return regExp;
return RegExp(escaped);
};
module.exports.exec = exec;