COD-94 fix(lint): remove useless escapes in jump-host regex character class

\[ inside [...] doesn't need backslash — ESLint no-useless-escape.
This commit is contained in:
Aamer Akhter
2026-07-09 12:18:21 -04:00
parent 3a03792009
commit 7efc6cd5a8
+1 -1
View File
@@ -325,7 +325,7 @@ export const RemoteHostSchema = z.object({
.min(1)
.max(255)
.regex(
/^(?:[A-Za-z0-9._-]+@)?[A-Za-z0-9.:\[\]-]+(?::\d{1,5})?(?:,(?:[A-Za-z0-9._-]+@)?[A-Za-z0-9.:\[\]-]+(?::\d{1,5})?)*$/,
/^(?:[A-Za-z0-9._-]+@)?[A-Za-z0-9.:[\]-]+(?::\d{1,5})?(?:,(?:[A-Za-z0-9._-]+@)?[A-Za-z0-9.:[\]-]+(?::\d{1,5})?)*$/,
'Jump host must be [user@]host[:port] (comma-separated for multiple hops)'
)
.optional(),