[aur-dev] [PATCH] Make external links in comments clickable (FS#20137).

Lukas Fleischer archlinux at cryptocrack.de
Fri Oct 1 11:52:35 EDT 2010


On Fri, Oct 01, 2010 at 04:59:22PM +0200, PyroPeter wrote:
> I fixed the </> bugs and changed the indention to tabs.
> I also changed the regex to one that accepts everything
> that starts with one of 'http', 'https' or 'ftp' followed by
> a colon ":", contains no whitespace and ends with a letter (\w)
> or a slash "/".
> It also parses hostnames starting with "www." and ending
> in a 2 to 5 letters long TLD consisting of only a-z.
> 
> [...]

This won't match URLs like
"https://aur.archlinux.org/packages.php?O=0&K=" and an ampersand at the
end of an URL won't be converted correctly :/ I'll try to implement it a
more proper way the next days. Maybe I'll actually go with splitting
comments at link boundaries as you suggested before... :)


More information about the aur-dev mailing list