From 934eadc858d21b67b9e7ab338d96342f34259430 Mon Sep 17 00:00:00 2001 From: azaozz Date: Thu, 20 Aug 2009 00:19:00 +0000 Subject: [PATCH] Better regex for [11844] git-svn-id: http://svn.automattic.com/wordpress/trunk@11845 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 8800953599..cd6bdc6876 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -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]; }