URL detection does not match IPv6 URLs
Feature Request
Summary
IPv6 URLs like:
http://[2607:f8b0:4005:807::200e]/
or
in the console are not detected, and cannot be opened by command-clicking them.
I'm not entirely sure, but https://gitlab.com/gnachman/iterm2/-/blob/008eb475/sources/iTermURLActionFactory.m#L659 looks like the relevant logic, and it currently only seems to look for IPv4 addresses.
https://stackoverflow.com/questions/53497/regular-expression-that-matches-valid-ipv6-addresses has some examples of regexes for matching IPv6 addresses, but they look quite complex. It might end up being simpler to extract all strings between [ and ] and then try calling inet_pton on them.