mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
refactor(util) getRegExp
This commit is contained in:
parent
73e464848f
commit
62f66c0c01
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue