cvs: pear /Text_Wiki/Text/Wiki/Parse/Mediawiki Code.php
| From: | Moritz Venn | Date: | Fri, 18 Aug 2006 14:51:57 +0000 |
| Subject: | cvs: pear /Text_Wiki/Text/Wiki/Parse/Mediawiki Code.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-41746@lists.php.net to get a copy of this message | ||
ritzmo Fri Aug 18 14:51:57 2006 UTC
Modified files:
/pear/Text_Wiki/Text/Wiki/Parse/Mediawiki Code.php
Log:
Fix Bug #8505 (thanks Brian)
http://cvs.php.net/viewvc.cgi/pear/Text_Wiki/Text/Wiki/Parse/Mediawiki/Code.php?r1=1.2&r2=1.3&diff_format=u
Index: pear/Text_Wiki/Text/Wiki/Parse/Mediawiki/Code.php
diff -u pear/Text_Wiki/Text/Wiki/Parse/Mediawiki/Code.php:1.2
pear/Text_Wiki/Text/Wiki/Parse/Mediawiki/Code.php:1.3
--- pear/Text_Wiki/Text/Wiki/Parse/Mediawiki/Code.php:1.2 Tue Aug 15 16:02:05 2006
+++ pear/Text_Wiki/Text/Wiki/Parse/Mediawiki/Code.php Fri Aug 18 14:51:57 2006
@@ -10,7 +10,7 @@
* @author Paul M. Jones <pmjones@php.net>
* @author Moritz Venn <ritzmo@php.net>
* @license http://www.gnu.org/copyleft/lesser.html LGPL
License 2.1
- * @version CVS: $Id: Code.php,v 1.2 2006/08/15 16:02:05 ritzmo Exp $
+ * @version CVS: $Id: Code.php,v 1.3 2006/08/18 14:51:57 ritzmo Exp $
* @link http://pear.php.net/package/Text_Wiki
*/
@@ -35,7 +35,6 @@
*/
class Text_Wiki_Parse_Code extends Text_Wiki_Parse {
-
/**
* The regular expression used to find source text matching this
* rule.
@@ -43,8 +42,7 @@
* @access public
* @var string
*/
-/* var $regex = '/^(\<code( .+)?\>)\n(.+)\n(\<\/code\>)(\s|$)/Umsi';*/
- var $regex =
';^<code(\s[^>]*)?>\n?((?:(?R)|.)*?)\n?</code>(\s|$);msi';
+ var $regex = ';<code(\s[^>]*)?>\n?((?:(?R)|.)*?)\n?</code>;msi';
/**
* Generates a token entry for the matched text. Token options are: