> Thanks for this, Florian, but I'm having one problem with it - it
> doesn't seem to get rid of punctuation. So if the update is:
>
> @florian What links to #habari? What about http://habariproject.org?
>
> the links have the question marks in them.
Having quite comprehensively having spammed Twitter, their
linkification does the following:
+-----------------------------------------------------------------+
| URI | Linked To |
+--------------------------------+--------------------------------+
| http://example.com/ | http://example.com/ |
| http://example.com/foobar/ | http://example.com/foobar/ |
| http://www.詹姆斯.com/ | http://www.詹姆
斯.com/ |
| http://[::1]/ | |
| http://example.com/foo?bar#lol | http://example.com/foo?bar#lol |
| ftp://example.com | |
| http://example.com1 | http://example.com1 |
| http://example.com. | http://example.com |
| http://example.com? | http://example.com |
| http://example.com/foobar? | http://example.com/foobar |
| http://example.com# | http://example.com# |
| http://example.com: | http://example.com |
| http://example.com:80 | http://example.com:80 |
| http://foo;bar.com/ | http://foo |
| http://ex&mple.com | http://ex |
| http://example.com" | http://example.com |
| http://example.com! | http://example.com |
| http://example.com$ | http://example.com |
| http://example.com& | http://example.com |
| http://example.com' | http://example.com |
| http://example.com( | http://example.com |
| http://example.com) | http://example.com |
| http://example.com* | http://example.com |
| http://example.com+ | http://example.com |
| http://example.com, | http://example.com |
| http://example.com= | http://example.com |
| http://ex%60mple.com | http://ex |
| HtTp://eXaMpLe.CoM | |
| http://EXAMPLE.COM | http://example.com |
| HTTP://EXAMPLE.COM | |
+--------------------------------+--------------------------------+
--
Geoffrey Sneddon
<http://gsnedders.com/>
We also work on something else (coming soon) and fixed it just cause
we build upon original twitter plugin.
So maybe their will be a better version in near future :)
regards
Florian
> --~--~---------~--~----~------------~-------~--~----~
> This message is part of the topic "Twitter-Plugin Linkify Code-
> Snippet"
> in the Google Group "habari-dev" for which you requested email
> updates.
> To stop receiving email updates for this topic, please visit the topic
> at http://groups.google.com/group/habari-dev/t/691194d7526ebb29
> -~----------~----~----~----~------~----~------~--~---
>
Seems to work and match very closely to the behavior of the twitter
linkification.