fixed bbcode bug (greedy to lazy)

main
fuzzykitten 2025-08-03 03:14:05 -04:00
parent 6929be8825
commit 6947589031
1 changed files with 8 additions and 8 deletions

View File

@ -79,14 +79,14 @@ function bbcode_to_html_mob($text, $settings)
} }
$search = array ( $search = array (
'/(\[b\ )(.*)(\])/', '/(\[b\ )(.*?)(\])/',
'/(\[i\ )(.*)(\])/', '/(\[i\ )(.*?)(\])/',
'/(\[u\ )(.*)(\])/', '/(\[u\ )(.*?)(\])/',
'/(\[s\ )(.*)(\])/', '/(\[s\ )(.*?)(\])/',
'/(\[h\ )(.*)(\])/', '/(\[h\ )(.*?)(\])/',
'/(\[sp\ )(.*)(\])/', '/(\[sp\ )(.*?)(\])/',
'/(\[li\ )(.*)(\])/', '/(\[li\ )(.*?)(\])/',
'/(\[url\ )(.*)(\])/', '/(\[url\ )(.*?)(\])/',
'/>>(.*)\r\n/' '/>>(.*)\r\n/'
); );