Skip to content

Commit

Permalink
for deflist, must now use ": " (colon-space) at beginning and " : " (…
Browse files Browse the repository at this point in the history
…space-colon-space) to separate term from def; this it becuase URLs as terms were breaking the rule

git-svn-id: https://svn.php.net/repository/pear/packages/Text_Wiki/trunk@166141 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
Paul M Jones committed Aug 12, 2004
1 parent e826194 commit bbd6e3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Text/Wiki/Parse/Deflist.php
Expand Up @@ -33,7 +33,7 @@ class Text_Wiki_Parse_Deflist extends Text_Wiki_Parse {
*
*/

var $regex = '/\n((:).*\n)(?!(:|\n))/Us';
var $regex = '/\n((: ).*\n)(?!(: |\n))/Us';


/**
Expand Down Expand Up @@ -74,7 +74,7 @@ function process(&$matches)
// create an array called $list that contains a new set of
// matches for the various definition-list elements.
preg_match_all(
'/^(:)(.*)?(:)(.*)?$/Ums',
'/^(: )(.*)?( : )(.*)?$/Ums',
$matches[1],
$list,
PREG_SET_ORDER
Expand Down

0 comments on commit bbd6e3e

Please sign in to comment.