add blacklist setting

This commit is contained in:
Shin'ya Ueoka 2017-10-22 22:17:00 +09:00
parent c6eb5553d0
commit b9f2668cea
4 changed files with 52 additions and 2 deletions

6
src/shared/utils/re.js Normal file
View file

@ -0,0 +1,6 @@
const fromWildcard = (pattern) => {
let regexStr = '^' + pattern.replace(/\*/g, '.*') + '$';
return new RegExp(regexStr);
};
export { fromWildcard };