Better regex for [11844]
git-svn-id: http://svn.automattic.com/wordpress/trunk@11845 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
668cfea9f2
commit
934eadc858
|
@ -1187,7 +1187,7 @@ function _make_url_clickable_cb($matches) {
|
|||
$url = $matches[2];
|
||||
|
||||
$after = '';
|
||||
if ( preg_match( '|(.+)([).])$|', $url, $split ) ) {
|
||||
if ( preg_match( '|(.+?)([).]*)$|', $url, $split ) ) {
|
||||
$url = $split[1];
|
||||
$after = $split[2];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue