From 212f2ce180e590e3b9a10dcd88b007869d468e97 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Thu, 20 Aug 2009 00:19:00 +0000 Subject: [PATCH] Better regex for [11844] git-svn-id: https://develop.svn.wordpress.org/trunk@11845 602fd350-edb4-49c9-b593-d223f7449a82 --- 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]; }