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 (
'/(\[b\ )(.*)(\])/',
'/(\[i\ )(.*)(\])/',
'/(\[u\ )(.*)(\])/',
'/(\[s\ )(.*)(\])/',
'/(\[h\ )(.*)(\])/',
'/(\[sp\ )(.*)(\])/',
'/(\[li\ )(.*)(\])/',
'/(\[url\ )(.*)(\])/',
'/(\[b\ )(.*?)(\])/',
'/(\[i\ )(.*?)(\])/',
'/(\[u\ )(.*?)(\])/',
'/(\[s\ )(.*?)(\])/',
'/(\[h\ )(.*?)(\])/',
'/(\[sp\ )(.*?)(\])/',
'/(\[li\ )(.*?)(\])/',
'/(\[url\ )(.*?)(\])/',
'/>>(.*)\r\n/'
);