Changeset 1294

Show
Ignore:
Timestamp:
08/17/08 16:45:41 (4 months ago)
Author:
_ck_
Message:

1.0.2 li bug fix

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bbcode-lite/trunk/BBcode-lite.php

    r1184 r1294  
    66Author: _ck_ 
    77Author URI: http://bbShowcase.org 
    8 Version: 1.0.1 
     8Version: 1.0.2 
    99 
    1010License: CC-GNU-GPL http://creativecommons.org/licenses/GPL/2.0/ 
     
    2222if (preg_match_all("|\<code\>(.*?)\<\/code\>|sim", $text, $backticks)) {foreach ($backticks[0] as $backtick) {++$counter; $text=str_replace($backtick,"_bbcode_lite_".$counter."_",$text);}} 
    2323 
    24 $text = preg_replace('/\[\*\](.+?)(\[\/\*\]|(?=(\[\*\]|\[\/list\])))/sim','<li>$1</li>',$text);       // * = li, a very special case since they may not be closed 
     24$text = preg_replace('/\[(\*|li)\](.+?)(\[\/(\*|li)\]|(?=(\[(\*|li)\]|\[\/list\])))/sim','<li>$2</li>',$text);        // * = li, a very special case since they may not be closed 
    2525 
    2626$wrap = array('color' => array('font','color'),'size' => array('font','size'),'url' => array('a','href'), 'list' => array('ol','type'));