From 69c523cb97078f06eaf81968a519da25bb11f43b Mon Sep 17 00:00:00 2001 From: uckelman Date: Tue, 27 Jul 2010 09:05:29 +0000 Subject: Convert non-BBCode email links. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@7038 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/BBCodeParser.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/BBCodeParser.php b/src/BBCodeParser.php index 1a19d1f..1f9aa26 100644 --- a/src/BBCodeParser.php +++ b/src/BBCodeParser.php @@ -16,7 +16,8 @@ class BBCodeParser { $in = preg_replace('/(.*?)<\/a>/', "[url:$uid=\\2]\\3[/url:$uid]", $in); + $in = preg_replace('/(.*?)<\/a>/', "[url:$uid=\\2]\\3[/url:$uid]", $in); + $in = preg_replace('/(.*?)<\/a>/', "[email:$uid=\\1]\\2[/email:$uid]", $in); $text_stack = array(); $arg_stack = array(); -- cgit v1.2.3