includes/wikiengine/parse_mediawiki.php
changeset 1306 e00489a30c72
parent 1231 4797a4a88533
child 1363 f1ed3e9298ae
--- a/includes/wikiengine/parse_mediawiki.php	Fri Sep 24 21:50:25 2010 -0400
+++ b/includes/wikiengine/parse_mediawiki.php	Tue Oct 12 23:07:27 2010 -0400
@@ -17,8 +17,8 @@
 		'bold'   => "/'''(.+?)'''/",
 		'italic' => "/''(.+?)''/",
 		'underline' => '/__(.+?)__/',
-		'externalwithtext' => '#\[((?:https?|irc|ftp)://.+?) (.+?)\]#',
-		'externalnotext' => '#\[((?:https?|irc|ftp)://.+?)\]#',
+		'externalwithtext' => '#\[((?:https?|irc|ftp)://[^ ]+?) (.+?)\]#',
+		'externalnotext' => '#\[((?:https?|irc|ftp)://[^ ]+?)\]#',
 		'mailtonotext' => '#\[mailto:([^ \]]+?)\]#',
 		'mailtowithtext' => '#\[mailto:([^ \]]+?) (.+?)\]#',
 		'hr' => '/^[-]{4,} *$/m',