Skip to content

Commit

Permalink
#6623: missing quantifier '?'
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.php.net/repository/pear/packages/Text_Wiki/trunk@206374 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
bertrand Gugger committed Feb 3, 2006
1 parent eeb902c commit 46697ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Text/Wiki/Parse/Mediawiki/Wikilink.php
Expand Up @@ -45,7 +45,7 @@ class Text_Wiki_Parse_Wikilink extends Text_Wiki_Parse {
* @var string
* @see Text_Wiki_Parse::parse()
*/
var $regex = '/\[\[(.+?)(?:#(.*?))?(?:\|(.*?))]]/ms';
var $regex = '/\[\[(.+?)(?:#(.*?))?(?:\|(.*?))?]]/ms';

/**
* Generates a replacement for the matched text. Token options are:
Expand All @@ -64,7 +64,7 @@ function process(&$matches)
$options = array(
'page' => $matches[1],
'anchor' => (empty($matches[2]) ? '' : $matches[2]),
'text' => (empty($matches[3]) ? '' : $matches[3])
'text' => (empty($matches[3]) ? $matches[1] : $matches[3])
);

// create and return the replacement token and preceding text
Expand Down

0 comments on commit 46697ce

Please sign in to comment.