linkifyjs
linkifyjs copied to clipboard
IP address support
I guess IP addresses like http://143.345.33.44:8181 should also be supported. Are you guys planning for that?
When this gets implemented it should exclude addresses reserved for private networks (https://en.wikipedia.org/wiki/IPv4#Private_networks). Looking forward to the addition of this feature.
it looks to me that IP addresses are implemented already when http:// is before them...
@Rejpal It seems like currenlty only IPv4 Addresses with a http(s) prefix are recognized. IPv6 Support seems to be missing completely:
Tested with the demo and the following list:
https://1.1.1.1/ https://1.1.1.1:443/ https://[2606:4700:4700::1111]/ https://[2606:4700:4700::1111]:443/
Supporting IPv6 with a http(s) prefix would be really nice. @nfrasser But maybe this should be dealt with in a seperate issue? Especially since this seems more like a core functionality than something for a plugin, like the free-floating IP address detection which seems to be goal of this issue (even in contrast to the intial comment)?
Long overdue but happy to report that bare IPv4 and prefixed IPv6 addresses are now supported in the latest v4 release via the ip
plugin (docs here). Thanks all for your contributions!