Skip to content

Commit 24dab1d

Browse files
chore: apply automated updates
1 parent 2df5d82 commit 24dab1d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/utils/response.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ export function redirect(
4444
status: number = 302,
4545
statusText?: string,
4646
): HTTPResponse {
47-
const htmlLoc = location.replace(/[&"<>]/g, (c) => ({ "&": "&amp;", '"': "&quot;", "<": "&lt;", ">": "&gt;" })[c]!);
47+
const htmlLoc = location.replace(
48+
/[&"<>]/g,
49+
(c) => ({ "&": "&amp;", '"': "&quot;", "<": "&lt;", ">": "&gt;" })[c]!,
50+
);
4851
const body = /* html */ `<html><head><meta http-equiv="refresh" content="0; url=${htmlLoc}" /></head></html>`;
4952
return new HTTPResponse(body, {
5053
status,

0 commit comments

Comments
 (0)