[Adium-devl] Where do URLs in messages get formatted?
Stephen Holt
stephen.holt at gmail.com
Wed Oct 3 20:38:30 UTC 2007
One correction - forgot IPv6 were hex...
([a-fA-F0-9]{0,4}:){2,7}[a-fA-F0-9]{0,4}(([0-9]{1,3}\.){3}[0-9]{1,3})?
sorry 'bout that.
--Steve Holt
On 10/3/07, Stephen Holt <stephen.holt at gmail.com> wrote:
>
> Just looking at the valid addresses from
> ftp://ftp.isi.edu/in-notes/rfc2732.txt, the valid formats for an IPv6
> address can be any of the following:
>
> FEDC:BA98:7654:3210:FEDC:BA98:7654:3210
> 1080:0:0:0:8:800:200C:4171
> 3ffe:2a00:100:7031::1
> 1080::8:800:200C:417A
> ::192.9.5.5
> ::FFFF:129.144.52.38
> 2010:836B:4179::836B:4179
>
> A quick and dirty pattern for an IPv6 literal might look like this:
>
> ([a-zA-Z0-9]{0,4}:){2,7}[a-zA-Z0-9]{0,4}(([0-9]{1,3}\.){3}[0-9]{1,3})?
>
> though, given that, we might want to restructure the pattern matching
> macros to "simplify" them a little.
>
> I'm swamped at work this week, but I have a long weekend coming up. I'd
> be willing to hack on this and look at that other hyperlink ticket.
>
> --Steve Holt
>
> On 10/3/07, Zachary West <zacwest at gmail.com> wrote:
>
> > On 10/3/07, Chris Stewart <cstewart913 at gmail.com > wrote:
> > >
> > > With respect to #7491 (http://trac.adiumx.com/ticket/7491), I'm trying
> > > to find where URLs, IPs, etc, are formatted as a hyperlink before being sent
> > > to a contact.
> >
> >
> > URLs are parsed using Lex. You can find the grammar, as well as the
> > objective-c source, at in Frameworks/AIHyperlinks.Framework.
> >
> > Zac
> >
> >
> >
> > _______________________________________________
> > Adium-devl mailing list
> > Adium-devl at adiumx.com
> > http://adiumx.com/mailman/listinfo/adium-devl_adiumx.com
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20071003/67570652/attachment-0001.html>
More information about the devel
mailing list