|
|
@ -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)); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|