forked from leftypol/leftypol
Add support for gopher url:// markup as hyperlinks
This commit is contained in:
parent
1e3a255b93
commit
a68d9bb120
1 changed files with 1 additions and 1 deletions
|
@ -1959,7 +1959,7 @@ function markup(&$body, $track_cites = false, $op = false) {
|
|||
$markup_urls = array();
|
||||
|
||||
$body = preg_replace_callback(
|
||||
'/((?:https?:\/\/|ftp:\/\/|irc:\/\/)[^\s<>()"]+?(?:\([^\s<>()"]*?\)[^\s<>()"]*?)*)((?:\s|<|>|"|\.||\]|!|\?|,|,|")*(?:[\s<>()"]|$))/',
|
||||
'/((?:https?:\/\/|ftp:\/\/|irc:\/\/|gopher:\/\/)[^\s<>()"]+?(?:\([^\s<>()"]*?\)[^\s<>()"]*?)*)((?:\s|<|>|"|\.||\]|!|\?|,|,|")*(?:[\s<>()"]|$))/',
|
||||
'markup_url',
|
||||
$body,
|
||||
-1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue