Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* bugfix for #11649: regex updated (from Horde, thanks yunosh)

  • Loading branch information...
commit d72ad53b9e1d47c3702a0791cdcdfeb171f7ad81 1 parent 40bd57a
till authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 Text/Wiki/Parse/Default/Code.php
View
5 Text/Wiki/Parse/Default/Code.php
@@ -49,8 +49,9 @@ class Text_Wiki_Parse_Code extends Text_Wiki_Parse {
*
*/
-/* var $regex = '/^(\<code( .+)?\>)\n(.+)\n(\<\/code\>)(\s|$)/Umsi';*/
- var $regex = ';^<code(\s[^>]*)?>((?:(?R)|.*?)*)\n</code>(\s|$);msi';
+ /* var $regex = '/^(\<code( .+)?\>)\n(.+)\n(\<\/code\>)(\s|$)/Umsi'; */
+ /* var $regex = ';^<code(\s[^>]*)?>((?:(?R)|.*?)*)\n</code>(\s|$);msi'; */
+ var $regex = ';^<code(\s[^>]*)?>(.*?)\n</code>(\s|$);msi';
/**
*
Please sign in to comment.
Something went wrong with that request. Please try again.