diff --git a/common/util.js b/common/util.js index f44c249a..943428f8 100644 --- a/common/util.js +++ b/common/util.js @@ -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;