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

Closed
prsolucoes opened this Issue May 29, 2012 · 1 comment

3 participants

@prsolucoes

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);

File:
esoTalk / plugins / BBCode / plugin.php

Line:
102

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

@Kyso

Running some tests shows that this might be purposeful. http://www.solmetra.com/scripts/regex/index.php

@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