diff options
Diffstat (limited to 'src/shared/settings/validator.js')
-rw-r--r-- | src/shared/settings/validator.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/settings/validator.js b/src/shared/settings/validator.js index 1589420..a800a52 100644 --- a/src/shared/settings/validator.js +++ b/src/shared/settings/validator.js @@ -27,7 +27,7 @@ const validateKeymaps = (keymaps) => { const validateSearch = (search) => { let engines = search.engines; for (let key of Object.keys(engines)) { - if (/\s/.test(key)) { + if ((/\s/).test(key)) { throw new Error( `While space in search engine name is not allowed: "${key}"` ); |