add blacklist setting
This commit is contained in:
parent
c6eb5553d0
commit
b9f2668cea
4 changed files with 52 additions and 2 deletions
6
src/shared/utils/re.js
Normal file
6
src/shared/utils/re.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
const fromWildcard = (pattern) => {
|
||||
let regexStr = '^' + pattern.replace(/\*/g, '.*') + '$';
|
||||
return new RegExp(regexStr);
|
||||
};
|
||||
|
||||
export { fromWildcard };
|
|
@ -1,6 +1,6 @@
|
|||
import operations from 'shared/operations';
|
||||
|
||||
const VALID_TOP_KEYS = ['keymaps', 'search'];
|
||||
const VALID_TOP_KEYS = ['keymaps', 'search', 'blacklist'];
|
||||
const VALID_OPERATION_VALUES = Object.keys(operations).map((key) => {
|
||||
return operations[key];
|
||||
});
|
||||
|
|
Reference in a new issue