fixed bbcode bug (greedy to lazy)
parent
6929be8825
commit
6947589031
|
@ -79,14 +79,14 @@ function bbcode_to_html_mob($text, $settings)
|
|||
}
|
||||
|
||||
$search = array (
|
||||
'/(\[b\ )(.*)(\])/',
|
||||
'/(\[i\ )(.*)(\])/',
|
||||
'/(\[u\ )(.*)(\])/',
|
||||
'/(\[s\ )(.*)(\])/',
|
||||
'/(\[h\ )(.*)(\])/',
|
||||
'/(\[sp\ )(.*)(\])/',
|
||||
'/(\[li\ )(.*)(\])/',
|
||||
'/(\[url\ )(.*)(\])/',
|
||||
'/(\[b\ )(.*?)(\])/',
|
||||
'/(\[i\ )(.*?)(\])/',
|
||||
'/(\[u\ )(.*?)(\])/',
|
||||
'/(\[s\ )(.*?)(\])/',
|
||||
'/(\[h\ )(.*?)(\])/',
|
||||
'/(\[sp\ )(.*?)(\])/',
|
||||
'/(\[li\ )(.*?)(\])/',
|
||||
'/(\[url\ )(.*?)(\])/',
|
||||
'/>>(.*)\r\n/'
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue