1 Testcases for auto-url linking in comments:
\r
3 http://www.nucleuscms.org/ should be linked
\r
4 www.nucleuscms.org should be linked
\r
5 Previous sentence.www.nucleuscms.org should be linked
\r
6 Previous sentence.http://www.nucleuscms.org should be linked
\r
7 awww... that hurts. Should not be linked
\r
8 http://ftp.nucleuscms.org/ should NOT be an FTP link
\r
9 ftp://www.nucleuscms.org/ should be linked as FTP
\r
10 ftp.nucleuscms.org should be linked
\r
11 Previous sentence.ftp.nucleuscms.org should be linked
\r
12 Previous sentence.ftp://ftp.nucleuscms.org should be linked
\r
13 naftp.ha should not be linked
\r
14 mailto:someone@example.org -> Linked
\r
15 someone@example.org -> not linked
\r
16 http://www.example.org/?foo=x&bar=y => ampersand entity ok?
\r
17 <<<http://www.blaat.com>>> => < & > should not be included in link
\r
18 &http://www.blaat.com&& => neither should &
\r
19 https://www.bla.com/
\r
21 <a href="http://help.blogger.com/bin/answer.py?answer=698&topic=36">blogger help</a> => should become <a href="http://...">blogger help</a>
\r
22 https://www.bla.com/, => the comma should not be linked