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

View File

@ -414,9 +414,9 @@ function common_replace_urls_callback($text, $callback, $notice_id = null) {
$regex = '#'. $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]+'. '[^.\s]+\.[^\s]+'.
'|'. '|'.