URLs with IPv6 addresses #25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Not sure how many variations we want to support, but at a minimum I think we should be able to correctly link with scheme like so:
Bare IPv6 addresses with or without the square brackets would be nice, but probably not worth it. Then we have to make sure we aren't linking an
address/prefix... headaches galore. We already have a neat problem with #17It's funny that GitLab doesn't get this correct either :)
I started down this path, but it's quite complicated. We try to do too much with the regex
@match_urlwhich is the core of the problem.We also fail in
valid_tld?because IPv6 addresses have colons and we exclude those from valid "hosts" in@get_scheme_host.Additionally, successfully detecting condensed form addresses like
2607:dba::1gets tricky even before we add support for the square-bracket format.