рашен ссылки git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@72 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
nanosimbiot 2011-07-04 07:52:56 +00:00
commit 2862a44529

View file

@ -798,11 +798,12 @@ class bbcode
(?<![\"'=]) (?<![\"'=])
\b \b
( (
https?://[\w\#$%&~/.\-;:=?@\[\]+]+ (https?://|ftp://|www\.|ftp\.)
[\w\#!$%&~/.\-;:=?@а-яА-Я\[\]+]+
) )
(?![\"']|\[/url|\[/img|</a) (?![\"']|\[/url|\[/img|</a)
(?=[,!]?\s|[\)<!]) (?=[,!]?\s|[\)<!])
#xi"; #xiu";
// pad it with a space so we can match things at the start of the 1st line. // pad it with a space so we can match things at the start of the 1st line.
$ret = " $text "; $ret = " $text ";