When you quote someone and enter a name
[quote=PyromanFO][quote=Mixolyde] pyro text[/quote]Mix text[/quote]
the output looks like this
PyromanFO wrote:
[quote=Mixolyde] pyro text
Mix text
[/quote]
Any ideas how to fix the regex?
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | bbcode-filter-fix_0.patch | 3.34 KB | pyromanfo |
| #1 | bbcode-filter-fix.patch | 2.03 KB | pyromanfo |
Comments
Comment #1
pyromanfo commentedAttached is a patch to fix this, slight speed hit but with filtercache this small of a hit shouldn't matter.
It basically has to seperate out the quote regexes and run through them a few times to catch quotes within quotes. It also tweaks the regex to allow this to happen.
Comment #2
pyromanfo commentedHere is a better patch to fix this, it's alot more robust and faster.
Comment #3
moggy commentedThis seems to work well.
Now all we need is a friendly developer to commit this.
Comment #4
naudefj commentedThis patch defines an array $quote_preg that is never used. Please cleanup and resubmit so we can get it committed ASAP.
Comment #5
naudefj commentedAdded to CVS - see http://cvs.drupal.org/viewcvs/drupal/contributions/modules/bbcode/bbcode...
Comment #6
(not verified) commented