Detect xmpp uri's and make them into hyperlinks

http://laconi.ca/trac/ticket/1592
This commit is contained in:
Craig Andrews 2009-07-21 13:52:59 -04:00
parent fbb0df9f54
commit a9613e999f
1 changed files with 2 additions and 2 deletions

View File

@ -414,9 +414,9 @@ function common_replace_urls_callback($text, $callback, $notice_id = null) {
$regex = '#'.
'(?:'.
'(?:'.
'(?:https?|ftps?|mms|rtsp|gopher|news|nntp|telnet|wais|file|prospero|webcal|xmpp|irc)://'.
'(?:https?|ftps?|mms|rtsp|gopher|news|nntp|telnet|wais|file|prospero|webcal|irc)://'.
'|'.
'(?:mailto|aim|tel):'.
'(?:mailto|aim|tel|xmpp):'.
')'.
'[^.\s]+\.[^\s]+'.
'|'.