fix: code scanning alerts (#2750)

This commit is contained in:
Tom Moor
2021-11-08 22:46:30 -08:00
committed by GitHub
parent 87e8ef8fe6
commit 6a64dfe4b2
5 changed files with 8 additions and 10 deletions

View File

@@ -96,7 +96,7 @@ export function searchUrl(
let route = "/search";
if (query) {
route += `/${encodeURIComponent(query.replace("%", "%25"))}`;
route += `/${encodeURIComponent(query.replace(/%/g, "%25"))}`;
}
search = search ? `?${search}` : "";