hack to handle slashes

This commit is contained in:
Theo Browne 2025-02-14 23:26:36 -08:00
parent 6efab00e75
commit 0b569d2b86
No known key found for this signature in database
GPG Key ID: BDDADD971F49875D

View File

@ -66,7 +66,8 @@ function getBangredirectUrl() {
// https://www.google.com/search?q={{{s}}}
const searchUrl = selectedBang?.u.replace(
"{{{s}}}",
encodeURIComponent(cleanQuery)
// Replace %2F with / to fix formats like "!ghr+t3dotgg/unduck"
encodeURIComponent(cleanQuery).replace(/%2F/g, "/")
);
if (!searchUrl) return null;