[Psi-devel] bug: closing ) in URL not recognised

Yves Goergen nospam.list at unclassified.de
Thu Jun 29 07:07:55 PDT 2006


On 29.06.2006 05:08 CE(S)T, Cliff Dugal wrote:
> http://en.wikipedia.org/wiki/Point_(typography)
> 
> gets linked as
> 
> http://en.wikipedia.org/wiki/Point_(typography
> 
> in chats

I don't believe there can ever be a totally correct URL detection from
plaintext. You can say you only accept a space as the end of a URL, but
this causes a lot of misdetections. Adding . / " and others to the list,
makes it better. If I write (www.google.de) it probably won't include
the ( ) in the link in this e-mail, for good reason, in this case.

I have the same problem in my BBCode parser, and the only deterministic
solution is XHTML (or BBCode tags in forums).

-- 
Yves Goergen "LonelyPixel" <nospam.list at unclassified.de>
http://beta.unclassified.de – My web laboratory.


More information about the psi-devel mailing list