fix: lint

This commit is contained in:
Alex Yang
2026-03-03 04:07:48 +09:00
parent 7b95e89e82
commit 4371c3fc1e

View File

@@ -4,9 +4,9 @@ const DANGEROUS_SCHEMES = ["javascript:", "data:", "vbscript:"];
function isLocalhost(hostname: string): boolean {
return (
hostname === "localhost" ||
hostname === "127.0.0.1" ||
hostname === "[::1]" ||
hostname === "localhost" ||
hostname === "127.0.0.1" ||
hostname === "[::1]" ||
hostname.endsWith(".localhost")
);
}