diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/commands.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/commands.js b/src/shared/commands.js index 8edeb5c..ed64a63 100644 --- a/src/shared/commands.js +++ b/src/shared/commands.js @@ -9,7 +9,7 @@ const normalizeUrl = (args, searchConfig) => { if (concat.includes('.') && !concat.includes(' ')) { return 'http://' + concat; } - let query = encodeURI(concat); + let query = concat; let template = searchConfig.engines[ searchConfig.default ]; @@ -19,7 +19,7 @@ const normalizeUrl = (args, searchConfig) => { template = searchConfig.engines[key]; } } - return template.replace('{}', query); + return template.replace('{}', encodeURIComponent(query)); } }; |