Incorret RegExp for bold on plugins/BBCode/plugin.php #65

prsolucoes opened this Issue May 29, 2012 · 1 comment

3 participants


I think that bold regexp is wrong, because you use the character "|" instead of "/" in first regexp character, look:

// Bold: [b]bold text[/b]
$sender->content = preg_replace("|[b](.*?)[/b]|si", "$1", $sender->content);

// Italics: [i]italic text[/i]
$sender->content = preg_replace("/[i](.*?)[\/i]/si", "$1", $sender->content);

esoTalk / plugins / BBCode / plugin.php


OBS: All regexp of BBCODE start with "/" but only "bold" regexp is starting with "|".


Running some tests shows that this might be purposeful.

@tobscure tobscure closed this Oct 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment