mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-21 22:15:28 +00:00
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…
x
Reference in New Issue
Block a user