adjust ipv6 address to use brackets
This commit is contained in:
parent
acb5e0104a
commit
03ea22f7a8
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ const password = q("#password")
|
|||
// 6: IPv6 address
|
||||
// MAYBE WITH
|
||||
// 7: port number
|
||||
const RE_LOSSY_MXID = new RegExp(`^@?([a-z0-9._=-]+?)(?::((?:(${S_RE_DOMAIN})|((${S_RE_IPV4})|(${S_RE_IPV6})))(?::(\\d+))?))?$`)
|
||||
const RE_LOSSY_MXID = new RegExp(`^@?([a-z0-9._=-]+?)(?::((?:(${S_RE_DOMAIN})|((${S_RE_IPV4})|(\\[${S_RE_IPV6}])))(?::(\\d+))?))?$`)
|
||||
|
||||
window.RE_LOSSY_MXID = RE_LOSSY_MXID
|
||||
|
||||
|
|
Loading…
Reference in a new issue