parent
0b37c2250e
commit
86421b7586
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ const normalizeUrl = (args, searchConfig) => {
|
||||||
if (concat.includes('.') && !concat.includes(' ')) {
|
if (concat.includes('.') && !concat.includes(' ')) {
|
||||||
return 'http://' + concat;
|
return 'http://' + concat;
|
||||||
}
|
}
|
||||||
let query = encodeURI(concat);
|
let query = concat;
|
||||||
let template = searchConfig.engines[
|
let template = searchConfig.engines[
|
||||||
searchConfig.default
|
searchConfig.default
|
||||||
];
|
];
|
||||||
|
@ -19,7 +19,7 @@ const normalizeUrl = (args, searchConfig) => {
|
||||||
template = searchConfig.engines[key];
|
template = searchConfig.engines[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return template.replace('{}', query);
|
return template.replace('{}', encodeURIComponent(query));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Reference in a new issue