Skip to content

Commit

Permalink
Fix Bug #8505 (thanks Brian)
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.php.net/repository/pear/packages/Text_Wiki/trunk@218431 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
Moritz Venn committed Aug 18, 2006
1 parent 3d8e58f commit 394ebf9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Text/Wiki/Parse/Mediawiki/Code.php
Expand Up @@ -35,16 +35,14 @@
*/
class Text_Wiki_Parse_Code extends Text_Wiki_Parse {


/**
* The regular expression used to find source text matching this
* rule.
*
* @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:
Expand Down

0 comments on commit 394ebf9

Please sign in to comment.