fix(site): satisfy strict listen regex lint

Escape the IPv6 listen closing bracket explicitly so the strict regexp lint rule accepts TLS listen parsing.
This commit is contained in:
Hintay
2026-05-23 22:42:56 +09:00
parent 31a7203da7
commit 0c3fe48ad3
@@ -6,7 +6,7 @@ function getListenPort(params: string) {
if (!firstToken)
return ''
const ipv6Port = firstToken.match(/^\[[^\]]+]:(\d+)$/)
const ipv6Port = firstToken.match(/^\[[^\]]+\]:(\d+)$/)
if (ipv6Port)
return ipv6Port[1]